Another version of the story relates that Allah took a handful of the dust of the earth and mixed into it the colors, white, black, yellow and red. That is the reason why men are born different colors. When Allah mixed the dust with water, it turned into potter's clay that makes a sound. It was fermented and had a smell. Iblis passed by, wondering what was going to be made of that clay. From the clay Allah created Adam. he molded his form with His own hands and blew His spirit into him. Adam's body quivered as life was imbued into it. Verily His Command, when He intends a thing is only that He says to it, "BE!" and it is! (Ch 37:82 Quran).
Allah the Almighty declared: Verily the likeness of Jesus, in Allah's Sight is the likeness of Adam, He created him from the dust then He said to him. "Be!" --and he was. (Ch 3:59 Quran).
Adam opened his eyes and saw all the angels prostrating before him except one being who was standing at a distance Adam did not know what kind of creature it was that did not prostrate before him nor did he know its name. Iblis was standing with the angels so as to be included in the command given to them but he was not one of them. He was a jinn, and as such he was supposed to be inferior to the angels. What is clear is that this prostration was to show respect and did not mean that the angels were worshipping Adam. Prostrating in worship is done only for ALLAH.
Almighty Allah recounted the story of Iblis's refusal to prostate before Adam: 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.
Iblis tried in vain to justify his refusal: