Police had asked the public for help in tracing Hamid Iqbal, 16, who was last seen in the Leith area on Sunday June 17.
On Saturday night, police tweeted that Hamid had been traced safe and well in Edinburgh.
Their message added: “We would like to thank everyone for their help and calls.”