Genesis 19:24-26.

“For the sake of ten I will not destroy it.”
But not even ten righteous souls could be found in either Sodom, or Gomorrah.

Genesis 19 24 26

Likewise, just as it was in the days of Lot—they were eating and drinking, buying and selling, planting and building, but on the day when Lot went out from Sodom, fire and sulfur rained from heaven and destroyed them all— so will it be on the day when the Son of Man is revealed.

On that day, let the one who is on the housetop, with his goods in the house, not come down to take them away, and likewise let the one who is in the field not turn back. Remember Lot's wife. Whoever seeks to preserve his life will lose it, but whoever loses his life will keep it.

Commentary from Luke 17:28-33.