Is someone else in you family going to use it, or are you going to sell it?
Look at this link.
Giving your former iPad to a spouse or family member: the quick guide
If you are going to sell it, go to Settings>Reset>Erase All Content and Settings
Delete your iCloud account, your email accounts, turn off Messages and FaceTime, and sign out of your ID in Settings>iTunes & Stores>Apple ID.
Then go to Settings>General>Reset>Erase all content and settings. Then every trace of anything that was tied to you personally will be wiped off the device.