Prepare MacBook for sale when OS X Lion reinstall requires Apple ID
Go to appleid.apple.com
Log in using your Apple ID and password.
Scroll down to "Devices."
Click on the name of the Macbook Pro.
A small window will open; click on "Remove."


You may also want to read Apple's advice on What to do before you sell or give away your Mac.