The device name is changed in Settings > General > About > Name.
Also, it sounds like the device may not have been erased as described in What to do before you sell or give away your iPhone, iPad, or iPod touch - Apple Support
You can make a difference in the Apple Support Community!
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.
The device name is changed in Settings > General > About > Name.
Also, it sounds like the device may not have been erased as described in What to do before you sell or give away your iPhone, iPad, or iPod touch - Apple Support
Device is the wrong name