One day three angels in disguise stop by Abraham’s camp on their way to smite Sodom and Gomorrah. Abraham treats them really well, so they repeat God’s promise that Sarah would get pregnant. Sarah overhears them and starts laughing her ass off, which pisses God off.
The angels (or God) then tell Abraham about Its plan to smite Sodom and Gomorrah. Abraham is pretty appalled that God is just going to destroy two cities and everyone in them and tries to talk God out of it. God relents a little bit and promises that if It can find at least ten righteous men, It won’t go through with the smiting.