The song lyrics were written in 1865 by Elvina M. Hall, a 47-year-old, widowed congregant, who was listening to a church sermon and prayer and penned the words on the back of a hymnal while sitting in a choir loft in at the Monument Methodist Episcopal Church in Baltimore, Maryland, and she gave the lyrics to her pastor, Rev.