Apple - How to completely disassociate iMessage from my device?
Go into Settings -> Messages and halfway down choose Send and Receive.
Tap your AppleID on the top of the page, sign out, and let the new guy sign his or her self in.
There is a workaround for this issue. You change your iCloud account password and enter it on the new device. After that the old device will have your old password, reboot the old device and you have completely circumvented the issue.
Works perfectly for me.
Try this: On the device, go to Settings then iMessage then tap on 'Receive at'. Tap the Apple ID at the top and you get the option to 'Sign out'. No need to change passwords. Should stop messages on that device until you sign in again.