 Having resigned his charge at Skirling in 1838, Hanna removed permanently to Edinburgh, where in 1850 he was called to be assistant to Thomas Guthrie, as minister of St. John's Free Church on Johnstone Terrace near Edinburgh Castle.In 1852 he received an honorary doctorate of LL.D.from the University of Glasgow and in 1864 an honorary doctorate D.D.