God can control our thoughts and intentions (imagination)

[Exodus 4:21] And the LORD said to Moses, “When you go back to Egypt, see that you do all those wonders before Pharaoh which I have put in your hand. But I will harden his heart, so that he will not let the people go