Surah Al-Baqara

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.

Tafsir 2:34

Allah reveals that He told the angels to prostrate to Adam out of recognition and respect, so they prostrated to him, eager to do as He told them, except for Iblīs, or Satan, who was originally from the jinn. Due to the excellence of his worship, Allah had entered Iblīs into the company of the angels; but he then returned to his lowly nature, refusing to prostrate as Allah told him to, and becoming proud towards Adam, leading to him becoming a disbeliever.