Pure Religion

If you understand that the correct way to love God is to love your neighbor, you’ll understand that “sinning greatly against the LORD” means to sin greatly against your neighbor.

Now the men of Sodom were exceedingly wicked sinners against the Lord.
Genesis 13:13 (NASB)

NOW THE MEN OF SODOM WERE WICKED. To their fellow man. This is stated in Ezekiel, viz., neither did she (Sodom) strengthen the hand of the poor and needy (Ezek. 16:49).
Ibn Ezra, Genesis 13:13:1

Echoes of Wickedness

The scriptures echo.

The last time this kind of wickedness was described, God was grieved that He made humanity. In His grief, He ended their misery.

I think we have to view what is going to happen here the same way. It’s meant to be seen as a parallel.

But the men of Sodom were exceedingly wicked and sinful against the Lord.
Genesis 13:13 (NKJV)

Then the Lord saw that the wickedness of man was great in the earth, and that every intent of the thoughts of his heart was only evil continually. And the Lord was sorry that He had made man on the earth, and He was grieved in His heart.
Genesis 13:13 (NKJV)