You can only use one Apple ID on a device at a time. Apple's mobile devices aren't designed to be shared. Ideally you would erase it and then let the other person set it up. Be careful because potentially this could lock it to their account and it would absolutely require their information to sign out in order for you to be able to use the device again.
How to erase your iPhone, iPad, or iPod touch - https://support.apple.com/HT201274 - "Learn how to wipe information from your iPhone, iPad, or iPod touch and restore your device to factory settings." Tap Settings > General > Reset (scroll all the way to the bottom)
Erase iPhone - Apple Support
"When you erase your iPhone, iPad, or iPod touch, Find My [device] and Activation Lock are turned off." - https://support.apple.com/HT201351