Abraham negotiated with God over the fate of Sodom, asking if the city would be spared if righteous people were found there.
This negotiation is recorded in Genesis 18:22-33, with Abraham progressively lowering the number of righteous people needed, from 50 down to just 10. Ultimately, not even ten righteous people were found, and the city was destroyed.