Question: what to do before giving your iphone away?
Answer: If you paired an Apple Watch with your iPhone, unpair your Apple Watch. Back up your device. Sign out of iCloud and the iTunes & App Store. ...  Go back to Settings and tap General > Reset > Erase All Content and Settings.