Apple ensures that all personal data is erased from the device before it's resold or recycled. However, it's always a good idea to backup and reset your device before trading it in.