Story narration · written from the Quranic account, not Quran
Allah commanded the angels to prostrate to Adam, and they did, except Iblis. He refused out of arrogance, arguing that he was created from fire while Adam was created from clay, and so was better. For that pride he was cast out and cursed, and he asked for respite until the Day of Resurrection so that he could mislead the descendants of Adam. Allah granted the respite, but declared that over His sincere servants Iblis would have no authority.
Quran · recitation and translation
Surah Al-Baqarah 2:34
وَإِذْ قُلْنَا لِلْمَلَٰٓئِكَةِ ٱسْجُدُوا۟ لِءَادَمَ فَسَجَدُوٓا۟ إِلَّآ إِبْلِيسَ أَبَىٰ وَٱسْتَكْبَرَ وَكَانَ مِنَ ٱلْكَٰفِرِينَ
And [mention] when We said to the angels, "Prostrate before Adam"; so they prostrated, except for Iblees. He refused and was arrogant and became of the disbelievers.
Surah Al-Araf 7:11–18
وَلَقَدْ خَلَقْنَٰكُمْ ثُمَّ صَوَّرْنَٰكُمْ ثُمَّ قُلْنَا لِلْمَلَٰٓئِكَةِ ٱسْجُدُوا۟ لِءَادَمَ فَسَجَدُوٓا۟ إِلَّآ إِبْلِيسَ لَمْ يَكُن مِّنَ ٱلسَّٰجِدِينَ ﴿11﴾ قَالَ مَا مَنَعَكَ أَلَّا تَسْجُدَ إِذْ أَمَرْتُكَ ۖ قَالَ أَنَا۠ خَيْرٌۭ مِّنْهُ خَلَقْتَنِى مِن نَّارٍۢ وَخَلَقْتَهُۥ مِن طِينٍۢ ﴿12﴾ قَالَ فَٱهْبِطْ مِنْهَا فَمَا يَكُونُ لَكَ أَن تَتَكَبَّرَ فِيهَا فَٱخْرُجْ إِنَّكَ مِنَ ٱلصَّٰغِرِينَ ﴿13﴾ قَالَ أَنظِرْنِىٓ إِلَىٰ يَوْمِ يُبْعَثُونَ ﴿14﴾ قَالَ إِنَّكَ مِنَ ٱلْمُنظَرِينَ ﴿15﴾ قَالَ فَبِمَآ أَغْوَيْتَنِى لَأَقْعُدَنَّ لَهُمْ صِرَٰطَكَ ٱلْمُسْتَقِيمَ ﴿16﴾ ثُمَّ لَءَاتِيَنَّهُم مِّنۢ بَيْنِ أَيْدِيهِمْ وَمِنْ خَلْفِهِمْ وَعَنْ أَيْمَٰنِهِمْ وَعَن شَمَآئِلِهِمْ ۖ وَلَا تَجِدُ أَكْثَرَهُمْ شَٰكِرِينَ ﴿17﴾ قَالَ ٱخْرُجْ مِنْهَا مَذْءُومًۭا مَّدْحُورًۭا ۖ لَّمَن تَبِعَكَ مِنْهُمْ لَأَمْلَأَنَّ جَهَنَّمَ مِنكُمْ أَجْمَعِينَ ﴿18﴾
(11) And We have certainly created you, [O Mankind], and given you [human] form. Then We said to the angels, "Prostrate to Adam"; so they prostrated, except for Iblees. He was not of those who prostrated. (12) [Allah] said, "What prevented you from prostrating when I commanded you?" [Satan] said, "I am better than him. You created me from fire and created him from clay." (13) [Allah] said, "Descend from Paradise, for it is not for you to be arrogant therein. So get out; indeed, you are of the debased. (14) [Satan] said, "Reprieve me until the Day they are resurrected." (15) [Allah] said, "Indeed, you are of those reprieved." (16) [Satan] said, "Because You have put me in error, I will surely sit in wait for them on Your straight path. (17) Then I will come to them from before them and from behind them and on their right and on their left, and You will not find most of them grateful [to You]." (18) [Allah] said, "Get out of Paradise, reproached and expelled. Whoever follows you among them - I will surely fill Hell with you, all together."
Surah Sad 38:71–85
إِذْ قَالَ رَبُّكَ لِلْمَلَٰٓئِكَةِ إِنِّى خَٰلِقٌۢ بَشَرًۭا مِّن طِينٍۢ ﴿71﴾ فَإِذَا سَوَّيْتُهُۥ وَنَفَخْتُ فِيهِ مِن رُّوحِى فَقَعُوا۟ لَهُۥ سَٰجِدِينَ ﴿72﴾ فَسَجَدَ ٱلْمَلَٰٓئِكَةُ كُلُّهُمْ أَجْمَعُونَ ﴿73﴾ إِلَّآ إِبْلِيسَ ٱسْتَكْبَرَ وَكَانَ مِنَ ٱلْكَٰفِرِينَ ﴿74﴾ قَالَ يَٰٓإِبْلِيسُ مَا مَنَعَكَ أَن تَسْجُدَ لِمَا خَلَقْتُ بِيَدَىَّ ۖ أَسْتَكْبَرْتَ أَمْ كُنتَ مِنَ ٱلْعَالِينَ ﴿75﴾ قَالَ أَنَا۠ خَيْرٌۭ مِّنْهُ ۖ خَلَقْتَنِى مِن نَّارٍۢ وَخَلَقْتَهُۥ مِن طِينٍۢ ﴿76﴾ قَالَ فَٱخْرُجْ مِنْهَا فَإِنَّكَ رَجِيمٌۭ ﴿77﴾ وَإِنَّ عَلَيْكَ لَعْنَتِىٓ إِلَىٰ يَوْمِ ٱلدِّينِ ﴿78﴾ قَالَ رَبِّ فَأَنظِرْنِىٓ إِلَىٰ يَوْمِ يُبْعَثُونَ ﴿79﴾ قَالَ فَإِنَّكَ مِنَ ٱلْمُنظَرِينَ ﴿80﴾ إِلَىٰ يَوْمِ ٱلْوَقْتِ ٱلْمَعْلُومِ ﴿81﴾ قَالَ فَبِعِزَّتِكَ لَأُغْوِيَنَّهُمْ أَجْمَعِينَ ﴿82﴾ إِلَّا عِبَادَكَ مِنْهُمُ ٱلْمُخْلَصِينَ ﴿83﴾ قَالَ فَٱلْحَقُّ وَٱلْحَقَّ أَقُولُ ﴿84﴾ لَأَمْلَأَنَّ جَهَنَّمَ مِنكَ وَمِمَّن تَبِعَكَ مِنْهُمْ أَجْمَعِينَ ﴿85﴾
(71) [So mention] when your Lord said to the angels, "Indeed, I am going to create a human being from clay. (72) So when I have proportioned him and breathed into him of My [created] soul, then fall down to him in prostration." (73) So the angels prostrated - all of them entirely. (74) Except Iblees; he was arrogant and became among the disbelievers. (75) [Allah] said, "O Iblees, what prevented you from prostrating to that which I created with My hands? Were you arrogant [then], or were you [already] among the haughty?" (76) He said, "I am better than him. You created me from fire and created him from clay." (77) [Allah] said, "Then get out of Paradise, for indeed, you are expelled. (78) And indeed, upon you is My curse until the Day of Recompense." (79) He said, "My Lord, then reprieve me until the Day they are resurrected." (80) [Allah] said, "So indeed, you are of those reprieved (81) Until the Day of the time well-known." (82) [Iblees] said, "By your might, I will surely mislead them all (83) Except, among them, Your chosen servants." (84) [Allah] said, "The truth [is My oath], and the truth I say - (85) [That] I will surely fill Hell with you and those of them that follow you all together."