https://www.blueletterbible.org/assets/images/copyChkboxOff.gif Exo 32:14
So the LORD changed his mind about the terrible disaster he had threatened to bring on his people
Jer 26:19
But did King Hezekiah and the people kill him for saying this? No, they turned from their sins and worshiped the LORD. They begged him for mercy. Then the LORD changed his mind about the terrible disaster he had pronounced against them. So we are about to do ourselves great harm.”
https://www.blueletterbible.org/assets/images/copyChkboxOff.gif Jon 3:10
When God saw what they had done and how they had put a stop to their evil ways, he changed his mind and did not carry out the destruction he had threatened.
Exo 32:14
And the LORD repented of the evil which he thought to do unto his people.
Amo 7:3
The LORD repented for this: It shall not be, saith the LORD.
I know God is all knowing and He changes not but it seems that we have free will. When God's people turn away from sin and repent God responds.