Allah says in surah al-Jathiyah:
أَفَرَأَيْتَ مَنِ اتَّخَذَ إِلَٰهَهُ هَوَاهُ وَأَضَلَّهُ اللَّهُ عَلَىٰ عِلْمٍ وَخَتَمَ عَلَىٰ سَمْعِهِ وَقَلْبِهِ وَجَعَلَ عَلَىٰ بَصَرِهِ غِشَاوَةً فَمَن يَهْدِيهِ مِن بَعْدِ اللَّهِ ۚ أَفَلَا تَذَكَّرُونَ * وَقَالُوا مَا هِيَ إِلَّا حَيَاتُنَا الدُّنْيَا نَمُوتُ وَنَحْيَا وَمَا يُهْلِكُنَا إِلَّا الدَّهْرُ ۚ وَمَا لَهُم بِذَٰلِكَ مِنْ عِلْمٍ ۖ إِنْ هُمْ إِلَّا يَظُنُّونَ
Have you seen those who take their desires as their god and Allah leads him astray due to some knowledge and seals his hearing and his heart and places a covering over his vision? Then who besides Allah will guide him? Won’t you take a reminder? * And they say, “There is nothing but our worldly life. We die and we live. And nothing but time destroys us.” However they do not have any knowledge of that. They are only guessing. [45:23-24]
Commenting on this, Imam Abu Muhammad al-Husayn al-Baghawi wrote:
ـ ( أفرأيت من اتخذ إلهه هواه ) قال ابن عباس والحسن وقتادة : ذلك الكافر اتخذ دينه ما يهواه ، فلا يهوى شيئا إلا ركبه لأنه لا يؤمن بالله ولا يخافه ، ولا يحرم ما حرم الله . وقال آخرون : معناه اتخذ معبوده هواه فيعبد ما تهواه نفسه . قال سعيد بن جبير : كانت العرب يعبدون الحجارة والذهب والفضة ، فإذا وجدوا شيئا أحسن من الأول رموه أو كسروه ، وعبدوا الآخر . ـ
أَفَرَأَيْتَ مَنِ اتَّخَذَ إِلَٰهَهُ هَوَاهُ
Have you seen those who take their desires as their god …
Ibn ‘Abbaas, al-Hasan and Qatadah all said: This is referring to a disbeliever who makes whatever he desires his religion, such that he engages in whatever he desires since he neither believes in Allah nor fears Him, nor does he treat what Allah forbade as forbidden.
Meanwhile, others said: The meaning is that this type of person makes the object of his desire the thing that he worships and he worships that thing itself.
Sa’eed ibn Jubayr said: The Arabs used to worship stones, gold and silver. Whenever they would find something more beautiful than what they already had, they would discard or destroy the first thing and worship the new thing.