The entry of polytheists and disbelievers into the Masjid al-Haram
No disbeliever or polytheist should ever be permitted to enter the Haram, and especially the Masjid al-Haram, for any purpose. Allah the Exalted says:
يَا أَيُّهَا الَّذِينَ آمَنُوا إِنَّمَا الْمُشْرِكُونَ نَجَسٌ فَلَا يَقْرَبُوا الْمَسْجِدَ الْحَرَامَ بَعْدَ عَامِهِمْ هَٰذَا ۚ وَإِنْ خِفْتُمْ عَيْلَةً فَسَوْفَ يُغْنِيكُمُ اللَّهُ مِن فَضْلِهِ
“O you who believe! Indeed the polytheists are absolutely impure, so after this year of theirs they must not come near the Masjid al-Haram. And if you fear poverty, Allah will enrich you from His bounty.”
The entry of polytheists into the other mosques
The entry of polytheists into the mosques other than the Masjid al-Haram is permissible when there is a need, because the verse specifically forbids entry into the Masjid al-Haram. But there is a difference of opinion on this issue:
(The people of Madinah) Entry into every mosque is forbidden for every polytheist.
(Al-Shafi’i, may Allah have mercy on him) Polytheists may enter mosques other than the Masjid al-Haram when there is a need.
(Abu Hanifah, may Allah have mercy on him) He holds the same view, but he permitted the dhimmis to enter mosques even without a need.
(Qatadah, may Allah have mercy on him) Entry into mosques is permissible for a dhimmi, while it is forbidden for a polytheist.
(The preponderant view) The position of Imam al-Shafi’i, may Allah have mercy on him, is the preponderant one. Its evidences are as follows:
➊ The Messenger of Allah ﷺ kept Thumamah ibn Uthal tied to a pillar of the mosque (while he was in a state of polytheism).
➋ The Prophet ﷺ also lodged the delegation of Thaqif in the mosque.
➌ Most of the delegations of the polytheists used to come to the Prophet’s Mosque (even though it is more excellent than the other mosques apart from the Masjid al-Haram).
(Al-Nawawi, may Allah have mercy on him) The people of knowledge say that if disbelievers are travellers in the Hijaz and are in a state of hesitation, they will not be stopped, but they may not stay in the Hijaz for more than three days. Imam al-Shafi’i, may Allah have mercy on him, says that (this permission) excludes Makkah and its Haram, because it is not permissible for a disbeliever to stay in it under any circumstances. If he enters it secretly, it is obligatory to expel him. If he dies and is buried there, then (when it becomes known) he will be dug up and taken out, as long as his condition has not changed.
Their evidence is this verse:
يَا أَيُّهَا الَّذِينَ آمَنُوا إِنَّمَا الْمُشْرِكُونَ نَجَسٌ فَلَا يَقْرَبُوا …….