“Remember when your Lord said to the angels, ‘I am going to create a man (Adam) from sounding clay of altered black smooth mud. So when I have fashioned him completely and breathed into him (Adam) the soul which I created for him then fall you down prostrating yourselves unto him’. So the angels prostrated themselves all of them together, except Iblis, he refused to be among the prostrators. Allah said: ‘O Iblis! What is your reason for not being
among the prostrators?’ Iblis said: ‘I am not the one to prostrate myself to a human being, whom You created from sounding clay of altered black smooth mud.’ Allah said: ‘Then get out from here for verily you are Rajim (an outcast or cursed one). Verily the curse shall be upon you till Day of Recompense (Day of Resurrection)'”. (Ch 15:28-35 Quran).
In another surah Almighty Allah recounted it thus:
“Surely We created you (your father Adam) and then gave you shape (the noble shape of a human being), then We told the angels: ‘Prostrate to Adam and they prostrated except Iblis he refused to be of those who prostrate”.
Allah said: “What prevented you Iblis that you did not prostrate when I commanded you?” Iblis said: ‘I am better than him (Adam), You created me from fire and him You created from clay.’ Allah said: ‘Get down from this Paradise, it is not for you to be arrogant here. Get out, for you are of those humiliated and disgraced.’ Iblis said: ‘Allow me respite till the Day of Resurrection).’ Allah said: ‘You are of those allowed respite.'” (Ch 7:11-15 Quran).
Ibn Jarir reported that Muhammad Ibn sirin said that the first one to reach a conclusion by reasoning was Iblis and that the sun and moon were not worshiped except through this method. This means that Iblis tried to compare himself to Adam. He believed that he was more honorable than Adam. Therefore he abstained from prostrating even though Allah had commanded him to do so, just as He had commanded the angels.
If an analogy is made we see that Iblis is vain. For indeed clay is better than fire because in it can be found the qualities of calmness, clemency, perseverance and growth; whereas in fire can be found heedlessness, insignificance, haste, and incineration.