Genesis 18:25-33 NIV

25 Far be it from you to do such a thing1--to kill the righteous with the wicked, treating the righteous2 and the wicked alike.3 Far be it from you! Will not the Judgea4 of all the earth do right?"5
26 The LORD said, "If I find fifty righteous people in the city of Sodom, I will spare the whole place for their sake.6"

References for Genesis 18:26

      27 Then Abraham spoke up again: "Now that I have been so bold as to speak to the Lord, though I am nothing but dust and ashes,7

      References for Genesis 18:27

      28 what if the number of the righteous is five less than fifty? Will you destroy the whole city because of five people?" "If I find forty-five there," he said, "I will not destroy it."
      29 Once again he spoke to him, "What if only forty are found there?" He said, "For the sake of forty, I will not do it."
      30 Then he said, "May the Lord not be angry,8 but let me speak. What if only thirty can be found there?" He answered, "I will not do it if I find thirty there."

      References for Genesis 18:30

      31 Abraham said, "Now that I have been so bold as to speak to the Lord, what if only twenty can be found there?" He said, "For the sake of twenty, I will not destroy it."
      32 Then he said, "May the Lord not be angry, but let me speak just once more.9 What if only ten can be found there?" He answered, "For the sake of ten,10 I will not destroy it."

      References for Genesis 18:32

      33 When the LORD had finished speaking11 with Abraham, he left,12 and Abraham returned home.13

      References for Genesis 18:33