Genesis 18:23-33

23 Abraham stepped forward and said, "Will You really sweep away the righteous with the wicked?
24 What if there are 50 righteous people in the city? Will You really sweep it away instead of sparing the place for the sake of the 50 righteous people who are in it?
25 You could not possibly do such a thing: to kill the righteous with the wicked, treating the righteous and the wicked alike. You could not possibly do that! Won't the Judge of all the earth do what is just?"
26 The Lord said, "If at Sodom I find 50 righteous people in the city, I will spare the whole place for their sake."
27 Then Abraham answered, "Since I have ventured to speak to the Lord-even though I am dust and ashes-
28 suppose the 50 righteous lack five. Will you destroy the whole city for lack of five?" He replied, "I will not destroy [it] if I find 45 there."
29 Then he spoke to Him again, "Suppose 40 are found there?" He answered, "I will not do [it] on account of 40."
30 Then he said, "Let the Lord not be angry, and I will speak further. Suppose 30 are found there?" He answered, "I will not do [it] if I find 30 there."
31 Then he said, "Since I have ventured to speak to the Lord, suppose 20 are found there?" He replied, "I will not destroy [it] on account of 20."
32 Then he said, "Let the Lord not be angry, and I will speak one more time. Suppose 10 are found there?" He answered, "I will not destroy [it] on account of 10."
33 When the Lord had finished speaking with Abraham, He departed, and Abraham returned to his place.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.