In the name of Allah, We praise Him, seek His help and ask for His forgiveness. Whoever Allah guides none can misguide, and whoever He allows to fall astray, none can guide them aright. We bear witness that there is no one (no idol, no person, no grave, no prophet, no imam, no dai, nobody!) worthy of worship but Allah Alone, and we bear witness that Muhammad (saws) is His slave-servant and the seal of His Messengers.
There is a Surah in the Glorious Quran by the name of Ankabut which means a spider, and in the Verse where the Surah derives its name, the spiders house or web is only used as a parable to describe the flimsiness of those who take protectors and helpers besides Allah Subhanah! The reality of the expectation that a person who invokes his imaginary deities and gods besides Allah is compared to a spiders web! Just as the slightest interference by a blow of air or even a finger will completely destroy the spiders carefully built house, so will the expectations of the pagan who puts his trust and belief in such flimsy imaginary deities, who are truly powerless against the Plan and Will of Allah Subhanah, the True Lord and Protector of the Worlds!
Allah Says in the Holy Quran Chapter 29 Surah Ankabut (The Spider) verse 41:
مَثَلُ الَّذِينَ اتَّخَذُوا مِن دُونِ اللَّهِ أَوْلِيَاءَ كَمَثَلِ الْعَنكَبُوتِ اتَّخَذَتْ بَيْتًا ۖ وَإِنَّ أَوْهَنَ الْبُيُوتِ لَبَيْتُ الْعَنكَبُوتِ ۖ لَوْ كَانُوا يَعْلَمُونَ – 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.
The other mention of the spider in Islamic history is attributed to Hadrat Abu Baqr (r.a.) who said that during the hijrah or flight from Makkah to Madina, when the Prophet (saws) and Hadrat Abu Baqr (r.a.) were hiding in the cave from the enemies who were bent on killing them; the enemies of Islam goes so close to entering the cave, that the only thing between their life and impending death was a spiders web at the entrance of the cave which convinced the pagan Quraish that they were searching in the wrong place.