Presumably you are being prompted for your AppleID credentials - so as to satisfy the Activation Lock. You will require the AppleID an associated password that was last used to successfully activate the device - which, for the bona-fide owner, should be straightforward.
Here are the Apple support pages that outline the Activation Lock - and the only mechanisms by which it can be satisfied:
Activation Lock for iPhone, iPad, and iPod touch - Apple Support
Turn off Activation Lock – Apple Support
As you will discover, unless you are the owner of the AppleID that was last used to activate the device, you’ll not be able to defeat or bypass the Activation Lock. With documentary evidence that you are the original owner (such as sales receipt showing the serial number), Apple may be prepared to assist - otherwise they and nobody here will be able to help you. If you are able to contact and obtain assistance from the original owner, they will require this information:
What to do before you sell, give away, or trade in your iPhone or iPad - Apple Support
Otherwise, if you possess the necessary documentation, Apple have introduced a portal though which you may be able to request release of an Activation Lock:
How to remove Activation Lock - Apple Support & start an Activation Lock support request.