It is he who laid the foundation of factionalism...
It is he who laid the foundation of factionalism, quarreled with Allah about the robe of greatness, put on the dress of haughtiness and took off the covering of humility. Do you not see how Allah made him low on account of his vanity and humiliated him for his feigning to be high? He discarded him in this world and provided for him burning fire in the next world. اعْتَرَضَتْهُ الْحَمِيَّةُ، فَافْتَخَرَ عَلَى آدَمَ بَخَلْقِهِ، وَتَعَصَّبَ عَلَيْهِ لاِصْلِهِ.
Allah’s trial of His creatures ابتلاء الله لخلقه If Allah had wanted to create Adam from a light whose glare would have dazzled the eyes, whose handsomeness would have amazed the wits and whose fragrance would have caught the breath, He could have done so; and if He had done so, people would have bowed to him in humility and the trial of the angels through him would have become easier.
But Allah, the Glorified, tries His creatures by means of those things whose real nature they do not know in order to distinguish (good and bad) for them through the trial, and to remove vanity from them and keep them and keep them aloof from pride and self-admiration.
You should take a lesson from what Allah did with Satan; namely He nullified his great acts and extensive efforts on account of the vanity of one moment, although Satan had worshipped Allah for six thousand years - whether by the reckoning of this world or of the next world is not known. Who now can remain safe from Allah after Satan by committing a similar disobedience? None at all.
Allah, the Glorified, cannot let a human being enter Paradise if he does the same thing for which Allah turned out from it an angel.