Imam Muhammad bin Sirin, may Allah have mercy on him, said: The first to use analogy (qiyas) was Iblis, and it was due to analogy that the sun and the moon were worshipped.
Hadith Takhrijاس روایت کی سند جید ہے۔ دیکھئے: [جامع بيان العلم 1675] ، [تفسير الطبري 131/8] ، [الفقيه والمتفقه 506] ، [الإحكام لابن حزم 1381/8]
Brief Explanation
(Commentary on Hadith 194)
The analogy (qiyas) of Shaytan was that he was created from fire and Adam from clay; therefore, he considered himself superior. And how can the superior prostrate to the inferior? As will be mentioned further ahead.