In Genesis 18:16-33 (biblegateway.com/passage/?search=Genesis%2018:16-33), God told Abraham of his intention to destroy Sodom and Gomorrah as punishment for their wickedness.
Then this happens:
"Then Abraham approached him and said: “Will you sweep away the righteous with the wicked? 24 What if there are fifty righteous people in the city? Will you really sweep it away and not spare[c] the place for the sake of the fifty righteous people in it? 25 Far be it from you to do such a thing—to kill the righteous with the wicked, treating the righteous and the wicked alike. Far be it from you! Will not the Judge of all the earth do right?”
God actually agrees to spare both cities if only fifty good people are in the city, and Abraham is able to talk him down until God agrees to spare both cities if he finds only TEN good people among two cities which probably held hundreds of people.
Now most Catholic Theologians agree that God is all-knowing and all-good. Meaning he won’t change his mind because he can never be wrong. So why then would he seemingly go from “I shall destroy both cities” to “If I find fifty righteous people in the city of Sodom, I will spare the whole place for their sake."?
I think that God was really just testing Abraham’s compassion, to see if the progenitor for His Chosen People had enough compassion to plead on behalf of those who frankly didn’t deserve it. That Abraham plead for the two cities suggests
If Abraham had asked "What if only one can be found there?”, then Sodom and Gomorrah might have survived.
What do you think? Do you think God was testing Abraham’s compassion? Did God really change his mind? Did something else happen?