Gillespie Cameron, from Gorebridge, had been at a business premises on Bonnyrigg High Street at around 11am on Monday before leaving without notifying anyone of where he was going.
At the time, officers said concerns were growing for his welfare.
But in a statement released today, police said: “We’re pleased to confirm that Gillespie Cameron has been traced.
“The 49-year-old returned to his home in Gorebridge at around 11.50am on Thursday 4th April.
“Thanks to everyone who assisted with this appeal.”
Sign up to our newsletter: enter your email in the box at the top of this article to get daily updates straight to your inbox.