This song was written by Thomas A. Dorsey (1899-1993) who is known as the father of gospel music. He wrote the song in 1937 for Mahalia Jackson, and it was subsequently a hit for Red Foley in 1951, and was later recorded by Elvis Presley and also by Johnny Cash.