Genesis 18:20

And the LORD said, Because the cry of Sodom and Gomorrah is great, and because their sin is very grievous;

And the Lord said,.... The Targum of Jonathan adds, to the ministering angels, the two angels that were with him in the likeness of men; or to Abraham, at least in his hearing, by which he understood that Sodom and other cities were about to be destroyed for their sins:

Because the cry of Sodom and Gomorrah is great; either of Lot in it, whose righteous soul was vexed with the filthy conversation of the wicked, and cried to heaven against them; or of the inhabitants that were oppressed by others, either in their bodies, being forced to submit to their unnatural usage of them, or in their estates, of which they wronged them; particularly the cry of the poor among them, whom they suffered to starve, though there were fulness of bread in the midst of them, see Ezekiel 16:49; the Jews {b} say, they appointed false judges, who oppressed all strangers that came to Sodom, and made a law, that whoever relieved a poor person should be burnt with fire: or the cry of their sins, which were many and great, and openly and impudently committed; the cry of which came into the ears of the Lord of hosts, and called for vengeance. Those two cities, which perhaps were the greatest and the most remarkable for their sins, are put for all the five cities of the plain, called Pentapolis.

and because their sin is very grievous; attended with very aggravated circumstances, they enjoyed great plenty of good things; and were not to be bore with, being so exceeding sinful, and so publicly and audaciously committed, especially that sin so frequent among them, which has its name from Sodom, see Genesis 13:13.

{b} Pirke Eliezer, c. 25.