"Remember when Your Lord said to the angels:
Truly I am going to create man from clay." So when I have fashioned him and breathed into him soul created by Me, then you (angels) fall down prostrate to him.
So the angels prostrated themselves all of them, but Iblis (ancestor of satan), he was proud and was one of the disbelievers.
God said: O Iblis! What prevents you from prostrating yourself to one whom I have created with Both My Hands. Are you too proud or are you one of the high exalted?
Iblis said: I am better than he, You created me from fire, and You created him from clay.
God said: Then get out of here(the Heavens), for verily, you are outcast!
And verily My curse is on you till the Day of Recompense.
Iblis said: My Lord! Give me then respite till the Day the dead are resurrected.
God said: Verily! You are of those allowed respite- Till the day of the time appointed.
Iblis said: By Your Might, then I will surely mislead them all - except your chosen slaves amongst them.
God said: The truth is and the Truth I say - That I will fill Hell with you and those of them (mankind) that follow you, together.
(Koran, Chapter Sad, v.71-85)