In The Name of Allaah, The Most Merciful, The Bestower of Mercy
Allaah [The Most High] said:
وَإِذْ قُلْنَا لِلْمَلَائِكَةِ اسْجُدُوا لِآدَمَ فَسَجَدُوا إِلَّا إِبْلِيسَ كَانَ مِنَ الْجِنِّ فَفَسَقَ عَنْ أَمْرِ رَبِّهِ ۗ أَفَتَتَّخِذُونَهُ وَذُرِّيَّتَهُ أَوْلِيَاءَ مِن دُونِي وَهُمْ لَكُمْ عَدُوٌّ ۚ بِئْسَ لِلظَّالِمِينَ بَدَلًا
And (remember) when We said to the angels; “Prostrate to Adam.” So they prostrated except Iblis (Satan). He was one of the jinns; he disobeyed the Command of his Lord. Will you then take him (Iblis) and his offspring as protectors and helpers rather than Me while they are enemies to you? What an evil is the exchange for the Zalimun. [18:50]
Imaam Ibnul Qayyim [rahimahullaah] stated: Allaah says to His slaves: I ennobled your father; raised his rank and gave him preference over others. I commanded all the angels to prostrate to him as a (sign) of honour and nobility, and they obeyed Me; but my enemy and yours (i.e. Iblees) refused (to prostrate) and disobeyed my command. He refrained from obeying Me (Allaah), so how can it be fair seeming to you (sons of Aadam) that you take him and his offspring as allies besides Me (Allaah)- obeying him and disobeying Me, allying with him against what pleases Me, whilst they (Iblees and his offspring) are the severest enemies to you. So you ally with My enemy and he commands you with his enmity! Whoever allies with an enemy of a king, then he is the same as the enemy of the king, for indeed love and obedience cannot be complete except by way of having enmity towards the enemy of the one you follow and having allegiance to the friends of the one you follow. As for having allegiance to the enemy of the king and then claiming that you are the ally of the king, this is impossible.
[Source: An Excerpt from Al-Jawaab al-Kaafi. Pages 118-119]