He was born in Huntly, Aberdeenshire, the second son and fifth child of local miller James Hastings. His initial education was undertaken at Huntly School and Aberdeen Grammar School. He studied classics at the University of Aberdeen, graduating with a Master's degree in 1876. He then attended the Free Church Divinity College in Aberdeen in preparation for ordination as a Free Church minister. While studying at the college, he also worked as a teacher at Chanonry House School, a private school for boys in Old Aberdeen. Following a period as assistant minister in Broughty Ferry, Dundee, Hastings was ordained in 1884, becoming minister at Kineff Free Church in Kincardineshire. After 13 years, he was called to Willison Church inDundee, but returned to Kincardineshire in 1901, having struggled with his city placement. From 1901 until his retirement in 1911, he was the minister at the United Free Church in St Cyrus. During his period in office, he oversaw the erection of a new church building for the congregation. In one obituary, his preaching was described as "evangelical in sentiment, thoughtful and expository in style, fluent in delivery, and fervent in application." Hastings married Ann Wilson Forsyth in 1884, the year of his ordination. They had two children: Edward and Ann Wilson. Edward later also became a minister of the United Free Church. He received honorary Doctor of Divinity degrees from the University of Aberdeen and Queen's University in Nova Scotia. After his retirement, Hastings returned to Aberdeen, where he became a member of Beechgrove United Free Church. He died unexpectedly on 15 October 1922. His funeral was held on 18 October, and he was buried at Springbank Cemetery in Aberdeen.
Works
Hastings edited many reference works, which are still in use today. In 1913, he was awarded the biennial Dyke-Acland Medal for his services to biblical research. During his time at Willison church, Hastings founded the Expository Times, which he edited until his death. After his death, his children took over joint editorship of the journal until 1942, when C. Leslie Mitton became editor. The Expository Times continues to be issued monthly. He also established and edited a weekly periodical for Sunday School teachers, entitled The Sunday School. This ran for 104 editions between December 1892 and December 1894.
As editor
Dictionary of the Bible,, five volumes
Dictionary of Christ and the Gospels,, two volumes, later editions with John A. Selbie and John C. Lambert