Then the Lord relented and did not bring on his people the disaster he had threatened - Exodus 32:14
Scripture teaches that God does not change his mind, but he sometimes adjusts his answers to fit our response. The Bible contains many examples of this: the Hebrews on the outskirts of Canaan (see Nu 14:11–23; 1Sa 15:29); Hezekiah’s repentance on behalf of Israel (see 2Ch 29:3–10,36) and the sparing of Nineveh (see Jnh 3:1–10).
Experiencing God’s will is dynamic. As with any interpersonal relationship, God’s relationship with humanity involves unexpected twists and turns. God modifies his responses to ours; we adjust our responses to God’s. So, in a sense, it can be said that God sometimes changes his mind in response to our prayers.