How this question is answered has a bearing on our understanding of the doctrine of God, particularly in relation to aspects of his character such as his sovereignty and immutability. But it also affects our understanding of prayer.
MALACHI 3:6 OTBDC: What Does the Bible Really Teach about God Changing His Mind?
6 And the Lord regretted that he had made man on the earth, and it grieved him to his heart.
10 And God saw their works, that they turned from their evil way; and God repented of the evil which he said he would do unto them; and he did it not.
If God is Immutable (unchangeable), why does he change his mind? Why does He feel regret?
Genesis 8:21 BDC: God had herein promised to never destroy the world again, did he change his mind?
Genesis 8:21 Updated American Standard Version (UASV)
21 Jehovah smelled the soothing aroma; and the Jehovah in his heart, “I will never again curse the ground on account of man, for the intent of man’s heart is evil from his youth; and I will never again destroy every living thing, as I have done.