Another question I am often asked is, “If God cannot control man’s action, then how is He All-Powerful”? There is no doubt that God is All-Powerful. However, since He has decided to put man to the test, He has given man freedom of choice to do what he likes. As if there was no free will, there would be no test. So, to test man, God has withheld His power when it comes to man and given him the freedom to respond in any way that he wants. God, however, is getting a record of all of man’s thoughts, speech, and deeds maintained, and will hold him accountable for them on the Day of Judgment. On that Day all of humanity will see the power of God.
Source: God’s Creation Plan