Allah T'ala says in the Holy Quran:
وَلَقَدْ خَلَقْنَاكُمْ ثُمَّ صَوَّرْنَاكُمْ ثُمَّ قُلْنَا لِلْمَلآئِكَةِ اسْجُدُواْ لآدَمَ فَسَجَدُواْ إِلاَّ إِبْلِيسَ لَمْ يَكُن مِّنَ السَّاجِدِينَ
قَالَ مَا مَنَعَكَ أَلاَّ تَسْجُدَ إِذْ أَمَرْتُكَ قَالَ أَنَاْ خَيْرٌ مِّنْهُ خَلَقْتَنِي مِن نَّارٍ وَخَلَقْتَهُ مِن طِينٍ
قَالَ فَاهْبِطْ مِنْهَا فَمَا يَكُونُ لَكَ أَن تَتَكَبَّرَ فِيهَا فَاخْرُجْ إِنَّكَ مِنَ الصَّاغِرِينَ
(7:11) We initiated your creation, then We gave you each a shape, and then We said to the angels: 'Prostrate before Adam.' They all prostrated except Iblis: he was not one of those who fell Prostrate.
(7:12) Allah said: 'What prevented you from prostrating, when I commanded you to do so?' He said: 'I am better than he. You created me from fire, and him You created from clay.'
(7:13) Allah said: 'Then get you down from here. It does not behove you to be arrogant here. So be gone. You will be among the humiliated.'
Implicit in the Qur'anic expression (sagharin) is the idea of contentment with one's disgrace and indignity, for saghir is he who invites disgrace and indignity, upon himself. Now, Satan was a victim of vanity and pride, and for that very reason defied God's command to prostrate himself before Adam. Satan was therefore, guilty of self-inflicted degradation. False pride, baseless notions of glory, ill-founded illusions of greatness failed to confer any greatness upon him. They could only bring upon him disgrace and indignity. Satan could blame none but himself for this sordid end.
Watch out for vanity and pride. Do not invite disgrace and indignity upon yourself! Don't be a saghir!