You should remove any password or PIN lock before selling your phone. At the very least, you should be able to provide the password or PIN for the phone if you haven’t deactivated these security options. This step would ensure a smooth dealing for all parties involved without any inconvenience.