Satan did not obey the LORD when commanded to submit to human limitations in order to learn to be good like the rest of us did:
Sura
7:11. It is We Who created you and gave you shape; then We bade the (fallen) angels submit to Adam, and you submitted (
Luke 9:55); not so Iblis (Lucifer); he refused to be of you who submitted.
7:12. ("I AM") said: "What prevented thee from submitting when I commanded thee?" He said: "I am better than he: Thou didst create me from fire (energy), and him from clay."
7:13. ("I AM") said: "Get thee down from this: it is not for thee to be arrogant here: get out, for thou art of the meanest (of creatures)."
7:14. He said: "Give me respite till The Day they are raised up."
7:15. ("I AM") said: "Be thou among those who have respite."
7:16. He said: "Because thou hast thrown me out of The Way, lo! I will lie in wait for them on Thy Straight Way:
7:17. Then will I assault them from before them and behind them, from their right and their left: nor wilt Thou find, in MOST of them, gratitude (for Thy mercies)."
7:18. ("I AM") said: "Get out from this, disgraced and expelled. If any of them follow thee,- Hell-Fire will I fill with you all (
Matt. 8:22).
7:19. O Adam! Dwell thou and thy wife in The Garden, and enjoy (its good things) as ye wish: but approach not this tree (of the knowledge of Evil [lies]), or ye run into harm and transgression."
7:20. Then began Satan to whisper suggestions to them, bringing openly before their minds all their shame that was hidden from them (before): he said: "Your Lord only forbade you this tree, lest ye should become angels or such beings as live for ever."
7:21. And he swore to them both (the lie), that he was their sincere adviser.
7:22. So by deceit he brought about their fall: when they tasted of the tree (of his knowledge which is not Knowledge but only lies), their shame became manifest to them, and they began to sew together the leaves of The Garden over their bodies. And their Lord called unto them: "Did I not forbid you that tree, and tell you that Satan was an avowed enemy unto you?"
7:23. They said: "Our Lord! We have wronged our own souls: if Thou forgive us not and bestow not upon us Thy Mercy, we shall certainly be lost."
7:24. ("I AM") said: "Get ye down, with enmity between yourselves. On Earth will be your dwelling-place and your means of livelihood,- for a time."
7:25. He said: "Therein shall ye live, and therein shall ye die; but from it shall ye be taken out (at last)."
7:26. O ye Children of Adam! We have bestowed clothing upon you to cover your shame, as well as to be an adornment to you. But being clothed with righteousness,- that is the best. Such are among the Signs of "I AM", that they may receive warning!
Satan was cast out of heaven and then after that, tempted the first woman, Eve.
Satan showed up in heaven again later, when the assembly of angels was called for them to appear before the LORD, and there the LORD asked Satan if he had considered His servant Job.
When asked by the LORD where he had come from, he said that he had come
from the Earth. That again shows that Satan had already been cast out of heaven, to the earth, before that point (Satan was no longer living in heaven like the other angels were, but was on the earth, before the assembly of angels was called).
When Adam and Eve were in the Garden, Satan was already there with them, (before Job was born) to tempt them, like he swore that he would do, to deceive and to assault them, as it is written in Sura 7:16-17.