قَالَ يَٰٓإِبْلِيسُ مَا لَكَ أَلَّا تَكُونَ مَعَ ٱلسَّٰجِدِينَ٣٢
Allah said, “O Iblīs, what is the matter with you that you were not with those who prostrated?”
[ ↗ Study from physical print edition ][Allah] said, O Iblees, what is [the matter] with you that you are not with those who prostrate?"
[ ↗ Study from physical print edition ]32. After Iblis refused to prostrate to Adam, Allah said to him: What kept you and prevented you from prostrating with the angels, who prostrated out of obedience to My command?
He God exalted be He ‘O Iblīs what is wrong with you what prevents you that you are not among those prostrating?’
The Command to Prostrate was Given to Angels - Iblis was to Follow SuitAddressing Iblis in Surah Al-A` raf, it was said: مَا مَنَعَكَ أَلَّا تَسْجُدَ إِذْ أَمَرْتُكَ (What stopped you from prostrating when I ordered you? - 7:12). This shows that the command to prostrate was given, along with the angels, to Iblis as well. However, the verses you have gone through a little earlier apparently give the sense that the command was particular to the an-gels. This could mean that the command was originally given to the angels but, as Iblis too was present among the angels, therefore, he too was covered by this command as a corollary - because, when the command went forth for the most august creation of Allah Ta’ ala, that is, the an-gels, that they pay their homage to Sayyidna 'Adam (علیہ السلام) ، it was obvious that any other creation was bound to follow suit under this command. It was for this reason that Iblis did not respond by saying that he was never asked to prostrate to begin with, so he could not be charged with the crime of non-compliance of the order. Perhaps, the words of the Qur’ an here: ' أَبَىٰ أَن يَكُونَ مَعَ السَّاجِدِينَ ' (He refused to be among those who prostrated - 30) may contain a hint in that direction. Rather than say: أَبَىٰ أَن یَّسجُدَ 1 that is, 'he refused to prostrate', what was actually said was: ' أَبَىٰ أَن يَكُونَ مَعَ السَّاجِدِينَ ' he refused to be among those who prostrated. This indicates that the main prostraters were after all the angels but Iblis too, being present with them, was reason-bound to join the prostrating an-gels. So, the Divine wrath was against his failure to join.
Tafsir al-Qurtubi [The Compendium of Legal Rulings]
تفسير القرطبي (الجامع لأحكام القرآن)قَوْلُهُ تَعَالَى: ﴿قالَ يَا إِبْلِيسُ مَا لَكَ﴾ أَيْ مَا الْمَانِعُ لَكَ. (أَلَّا تَكُونَ مَعَ السَّاجِدِينَ) أَيْ فِي أَلَّا تَكُونَ. (قالَ لَمْ أَكُنْ لِأَسْجُدَ لِبَشَرٍ خَلَقْتَهُ مِنْ صَلْصالٍ مِنْ حَمَإٍ مَسْنُونٍ) بَيَّنَ تَكَبُّرَهُ وَحَسَدَهُ، وَأَنَّهُ خَيْرٌ مِنْهُ، إِذْ هُوَ مِنْ نَارٍ وَالنَّارُ تَأْكُلُ الطِّينَ، كَمَا تَقَدَّمَ فِي" الْأَعْرَافِ [[راجع ج ٧ ص ١٧٠.]] " بَيَانُهُ. (قالَ فَاخْرُجْ مِنْها) أي من السموات، أَوْ مِنْ جَنَّةِ عَدْنٍ، أَوْ مِنْ جُمْلَةِ الْمَلَائِكَةِ. (فَإِنَّكَ رَجِيمٌ) أَيْ مَرْجُومٌ بِالشُّهُبِ. وَقِيلَ: مَلْعُونٌ مَشْئُومٌ. وَقَدْ تَقَدَّمَ هَذَا كُلُّهُ مُسْتَوْفًى فِي الْبَقَرَةِ وَالْأَعْرَافِ. (وَإِنَّ عَلَيْكَ اللَّعْنَةَ) أَيْ لعنتي، كما في سورة" ص [[راجع ج ١٥ ص ٢٢٨]] ".