First published in 1787 in ”A Selection of Hymns from the Best Authors,“ by John Rippon. In Rippon’s compilation, the author was attributed only to "K", which probably refers to Robert Keen(e), the precentor at Rippon's church.
The theme of this hymn is the solidity of the word of God.
Since its publication, “How Firm A Foundation” has enjoyed wide acceptance, especially in North America. It is known to have been the favorite hymn of both General Robert E. Lee and Theodore Roosevelt, and was sung at the funeral of each.