Go into your iCloud account and sign out of find my iPhone, or go to your account online and remove the device from your list of tracked devices.
If you do not know the iCloud account password and login then you will need to contact the owner of the account and get them to do it. If you cannot contact the owner or do not know who they are, then there is nothing you can do.