“(1) And surely, We created you (your father Adam) and then gave you shape (the noble shape of a human being); then We told the angels, “Prostrate yourselves to Aadam”, and they prostrated themselves, except Iblees (Satan), he refused to be of those who prostrated themselves. (2) (Allaah) said: “What prevented you (O Iblees) that you did not prostrate yourself, when I commanded you?” Iblees said: “I am better than him (Aadam), You created me from fire, and him You created from clay.” [Al-A'raaf (17):11-12]

Al-Hassan Al-Basree (rahimahullaah) comments:

Iblees (Satan) drew analogous conclusions, and he was the first to do so.

Muhammad ibn Sireen said:

Iblees was the first to draw analogous conclusions, and neither sun nor moon were worshiped but as a result of analogous conclusions.”

Ibn Katheer comments:

“What is meant is that he looked upon himself from the point of analogous conclusion between himself and Aadam. He saw himself nobler than Aadam, so he refused to prostrate before him, in the face of the (Divine) command for him, to prostrate as He commanded the angels. If analogy is given consideration in the presence of the (clear) text, then that analogy will not stand (i.e. it is a false consideration). And even in itself [in the absence of a text], the analogy is false [in its conclusion]. Because soil is more beneficial and better than fire, as in the soil there are qualities of serenity, gentleness, perseverance, and growth. While in fire there are qualities of frivolity, impatience, haste and burning.”

The Stories of the Prophets, by Imaam Ibn Katheer