Answer: That Allah plans for everything is justified from the following verse:
Verse 253 of Chapter 2:
Those messengers We endowed with gifts, some above others: To one of them Allah spoke; others He raised to degrees (of honour); to Jesus the son of Mary We gave clear (Signs), and strengthened him with the holy spirit. If Allah had so willed, succeeding generations would not have fought among each other, after clear (Signs) had come to them, but they (chose) to wrangle, some believing and others rejecting. If Allah had so willed, they would not have fought each other; but Allah does whatever He pleases.
God has given humans the freedom to do whatever they like and the guideline as well through His messengers and divine books to clearly show them the right and wrong pathways. On the other hand, God has also given Satan the freedom to attempt for constantly influencing the human minds to do the wrong things. However, humans who are firmly in the right pathway are able to protect themselves from such influences and those who are not in the correct way, can easily be influenced by Satan. Now let's try to explain how God implemented one of His plans as mentioned in the following verse?
Verses 34-36 of Chapter 2:
Then We commanded the angels, "Bow yourselves to Adam. And they bowed down. Not so Iblis: he refused and was haughty: He was of those who reject Faith. We said: “O Adam! dwell thou and thy wife in the Garden; and eat of the bountiful things therein as (where and when) ye will; but approach not this tree, or ye run into harm and transgression.” Then did Satan make them slip from the (garden), and get them out of the state (of felicity) in which they had been. We said: “Get ye down, all (ye people), with enmity between yourselves. On earth will be your dwelling-place and your means of livelihood – for a time.
Having been created, both prophet Adam (peace be upon him) and his wife, Eve were kept by God in the ‘Garden’ for a trial where they were allowed to eat of the bountiful things therein, but forbidden to go towards a ‘Tree’. God knew that Satan would succeed in misleading them by his temptations as they were not firmly guided in the right path. God thus executed His plan by sending them to the earth and giving them and their children a clear message in the following verses that Humans should follow the guidance which He sent through His messengers in order for them to enter the paradise while anyone who rejects it shall be the inmate of the fire. During the course of life, humans could be misguided by Saitan, but if they properly repent, God would forgive them and give the chance to rectify.
Verses 37-39 of Chapter 2:
At that time Adam learnt appropriate words from his Lord and repented, and his Lord accepted his repentance, for He is very Relenting and very Merciful. We said, "Now go down, all of you from here. Henceforth there shall come to you Guidance from Me now and again: whoever will follow it shall have neither fear nor sorrow and whoever will refuse to accept it and defy Our Revelations they shall be doomed to the Fire wherein they shall remain for ever.
Of course God had the supreme power and full authority to design alternative plans in the beginning of human history.
To be continued…