i bought it and ijust want to unlock it i know my imei number it didnt come with a sim i dont think
If your friend still has service with TM, it would probably be easiest for them to ask TM to provide the unlock code via a customer service request.
If your friend no longer has T-Mobile, you will have to get your phone unlocked through a 3rd party website, or cell phone shop.
Worked for me!
Retrieving data ...