For I have chosen him, so that he may command his children and his household after him to keep the way of the LORD by doing righteousness and justice, so that the LORD may bring upon Abraham what He has spoken about him.” And the LORD said, “The outcry of Sodom and Gomorrah is indeed great, and their sin is exceedingly grave. I will go down now, and see if they have done entirely according to its outcry, which has come to Me; and if not, I will know.”
Then the men turned away from there and went toward Sodom, while Abraham was still standing before the LORD. Abraham came near and said, “Will You indeed sweep away the righteous with the wicked? Suppose there are fifty righteous within the city; will You indeed sweep it away and not spare the place for the sake of the fifty righteous who are in it? Far be it from You to do such a thing, to slay the righteous with the wicked, so that the righteous and the wicked are treated alike. Far be it from You! Shall not the Judge of all the earth deal justly?” So the LORD said, “If I find in Sodom fifty righteous within the city, then I will spare the whole place on their account.” And Abraham replied, “Now behold, I have ventured to speak to the Lord, although I am but dust and ashes. Suppose the fifty righteous are lacking five, will You destroy the whole city because of five?” And He said, “I will not destroy it if I find forty-five there.” He spoke to Him yet again and said, “Suppose forty are found there?” And He said, “I will not do it on account of the forty.” Then he said, “Oh may the Lord not be angry, and I shall speak; suppose thirty are found there?” And He said, “I will not do it if I find thirty there.” And he said, “Now behold, I have ventured to speak to the Lord; suppose twenty are found there?” And He said, “I will not destroy it on account of the twenty.” Then he said, “Oh may the Lord not be angry, and I shall speak only this once; suppose ten are found there?” And He said, “I will not destroy it on account of the ten.” As soon as He had finished speaking to Abraham the LORD departed, and Abraham returned to his place.