Genesis 18:26

26 The Lord said, "If at Sodom I find 50 righteous people in the city, I will spare the whole place for their sake."

Genesis 18:26 Meaning and Commentary

Genesis 18:26

If I find in Sodom fifty righteous within the city
Sodom is particularly mentioned because Lot dwelt there, and being the metropolis, and the city of greatest note, as Jarchi observes, it is put for the rest; and the sense is, if fifty righteous persons could be found in all the five cities, mercy should be shown them: then will I spare all the place for their sakes;
not Sodom only, but the whole country, of which Sodom was the chief; the Lord takes up and agrees to the number Abraham pitched upon, and grants the request he makes.

Genesis 18:26 In-Context

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."
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.