Surah Al-Kahf 18:50
وَإِذْ قُلْنَا لِلْمَلَـٰٓئِكَةِ ٱسْجُدُوا۟ لِـَٔادَمَ فَسَجَدُوٓا۟ إِلَّآ إِبْلِيسَ كَانَ مِنَ ٱلْجِنِّ فَفَسَقَ عَنْ أَمْرِ رَبِّهِۦٓ ۗ أَفَتَتَّخِذُونَهُۥ وَذُرِّيَّتَهُۥٓ أَوْلِيَآءَ مِن دُونِى وَهُمْ لَكُمْ عَدُوٌّۢ ۚ بِئْسَ لِلظَّـٰلِمِينَ بَدَلًا
And [mention] when We said to the angels, "Prostrate to Adam," and they prostrated, except for Iblees. He was of the jinn and departed from [i.e., disobeyed] the command of his Lord. Then will you take him and his descendants as allies other than Me while they are enemies to you? Wretched it is for the wrongdoers as an exchange.
Translation: Saheeh International
Tafsir
And when idh is dependent because it is governed by an implicit udhkur ‘mention when’ We said to the angels ‘Prostrate before Adam’ a prostration involving a bow not placing one’s forehead down to the ground as a greeting to him; and so they prostrated all except Iblīs. …
Excerpt from Tafsir al-Jalalayn, commentary on 18:50, via Quran.com. The reader has the full commentary and 9 more tafsirs.