Officers from Dorset Police had contacted their counterparts in the Lothian and Borders force in a bid to help find 43-year-old Gavin Miller, who was last seen in June, as it was believed he had travelled to Scotland.
A Dorset Police spokesman said: “The missing man, Gavin Miller, has been found safe and well in Dalkeith.”