We advise that you perform a factory reset of your phone, whether it’s locked or unlocked. This is easy and can be done through the Settings app on iPhones and Android devices.
Be sure to back everything up first, though.
This will keep your data safe and make checking your device over easier for recyclers too.