This gospel song was written as a poem by Rhea F. Miller (1894-1966) in 1922.
With meter:220.127.116.11 with refrain, was set to music by American gospel singer and hymn writer George Beverly Shea, (1909-2013) in 1939, and the song became popular worldwide. It has been performed by artists ranging from Jim Reeves, Gloria Gaither and Sloop Dog.
It appears that the copyright was not renewed, meaning it is now in the public domain in the USA. The situation is a little more complex in other countries, depending on their copyright law and timeframes