Surah Al-Ankaboot

29:41

مَثَلُ ٱلَّذِينَ ٱتَّخَذُوا۟ مِن دُونِ ٱللَّهِ أَوْلِيَآءَ كَمَثَلِ ٱلْعَنكَبُوتِ ٱتَّخَذَتْ بَيْتًۭا ۖ وَإِنَّ أَوْهَنَ ٱلْبُيُوتِ لَبَيْتُ ٱلْعَنكَبُوتِ ۖ لَوْ كَانُوا۟ يَعْلَمُونَ

The example of those who take allies other than Allah is like that of the spider who takes a home. And indeed, the weakest of homes is the home of the spider, if they only knew.

Tafsir 29:41

The example of the idolaters who took idols whom they worshipped other than Allah in the hope that they will benefit them or intercede for them is like that of a spider that builds a house to protect it from heat and cold and from an assault against it. The frailest of all houses is the spider’s as it does not ward off any cold nor prevent any heat. Similarly, their idols will not benefit nor harm nor intercede. If the idolaters knew that, they would not have taken idols that they worship besides Allah.