God uses his judgment on Sodom and Gomorrah to train Abraham in righteousness and justice. Abraham sees both God’s righteous judgment and his righteous mercy.