The Lord said,
Genesis 18:32For the sake of ten [righteous people], I will not destroy it.
Words: Anonymous, in Messages of Love Hymn Book (St. Louis, Missouri: Bible Truth Depot, 1920), number 178.
Music: Bath (Cooke) William H. Cooke, in The Presbyterian Book of Praise (Oxford/London, England: University Press/Henry Frowde, 1897), number 330 (🔊 pdf nwc).
If you know the author, or where to get a good photo of him or Cooke (head & shoulders, at least 200×300 pixels),

How great was Sodom’s sin,
When God, so good and kind,
Must burn the place, and people, too,
Nor leave one thing behind!
O! how could Lot, who saw God’s grace,
Take part in such a wicked place?
But Abram was not there,
He loved the Lord too well;
He heard the God of glory call,
And there he would not dwell.
He trusted God—and God was more
To Abram than all Sodom’s store.
And when the dreadful day
Of Sodom’s judgment came,
And Lot, who lingered
in the scene,
Was pulled from out the flame.
Then Abram stood with God apart,
And heard the secrets of His heart.
And you, my child, He calls
His glory home to share,
To know and follow Him while here,
And live with Him up there.
Hark! how he calls—O, linger not,
Nor love this wicked world like Lot.
O, listen to His voice,
And trust in His great love;
Down to your little heart it comes,
From His great heart above,
To make you free from all the sin,
And holy, happy, safe with Him.