Genesis 18:26 (KJV)

And the LORD said, If I find in Sodom fifty righteous within the city, then I will spare all the place for their sakes.