Iblis was of a jinn and was a devoted servant of God. He attained a very high status and was brought close with the angels. God knew Iblis harboured ill intentions, however, and this was the reason for his name, Iblis "Desperate".
The angels do not have free will and simply do not sin because they were not granted the freedom by God to disobey. When God created Adam, He commanded all the angels and jinn to prostrate to him as was termed "the Best of Creation". All the angels and jinn did so except Iblis, who refused to obey.Iblis was proud and arrogant and considered himself superior to Adam, since Adam was made from clay and Iblis was created from smokeless fire. For this act of disobedience, God cursed him to Hell for eternity, but gave him respite until the Day of Judgment, after Iblis requested it. Iblis obtained permission from God and vowed that he would use this time to lead all human men and women astray to Hell as a way of revenge against them. By refusing to obey God’s order he was thrown out of Paradise and thereafter he was called “Shaitan”.Although God grants the request, He also warns the Shayṭān that he would have no authority over His sincere ‘ubūd "devoted servants".
The Qur'an provides a supplication for mankind, aimed at fighting the tempting of ash-Shaytan and his minions:
God, furious at Adam falling for temptation cast them both out of the garden and placed them on Earth to continue to live out their lives and spawn the continuing family tree which eventually lead to the Human race as it is today. For Shaitan, this was a major victory. But he too now living on earth has, with God's permission, been granted eternal life until day of judgment and continues to misguide man, as per Islamic theology.