9:28
يَٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓا۟ إِنَّمَا ٱلْمُشْرِكُونَ نَجَسٌۭ فَلَا يَقْرَبُوا۟ ٱلْمَسْجِدَ ٱلْحَرَامَ بَعْدَ عَامِهِمْ هَٰذَا ۚ وَإِنْ خِفْتُمْ عَيْلَةًۭ فَسَوْفَ يُغْنِيكُمُ ٱللَّهُ مِن فَضْلِهِۦٓ إِن شَآءَ ۚ إِنَّ ٱللَّهَ عَلِيمٌ حَكِيمٌۭ
O you who have believed, indeed the polytheists are unclean, so let them not approach al-Masjid al-Haram after this, their [final] year. And if you fear privation, Allah will enrich you from His bounty if He wills. Indeed, Allah is Knowing and Wise.
Translation · Saheeh International
Tafsir
Ibn Kathīr (abridged)
Idolators are no longer allowed into Al-Masjid Al-Haram
Allah commands His believing servants, who are pure in religion and person, to expel the idolators who are filthy in the religious sense, from Al-Masjid Al-Haram. After the revelation of this Ayah, idolators were no longer allowed to go near the Masjid. This Ayah was revealed in the ninth year of Hijrah. The Messenger of Allah ﷺ sent `Ali in the company of Abu Bakr that year to publicize to the idolators that no Mushrik will be allowed to perform Hajj after that year, nor a naked person allowed to perform Tawaf around the House. Allah completed this decree, made it a legislative ruling, as well as, a fact of reality. `Abdur-Razzaq recorded that Jabir bin `Abdullah commented on the Ayah,
إِنَّمَا الْمُشْرِكُونَ نَجَسٌ فَلاَ يَقْرَبُواْ الْمَسْجِدَ الْحَرَامَ بَعْدَ عَامِهِمْ هَـذَا
(O you who believe! Verily, the Mushrikin are impure. So let them not come near Al-Masjid Al-Haram after this year) "Unless it was a servant or one of the people of Dhimmah." Imam Abu `Amr Al-Awza'i said, "Umar bin `Abdul-`Aziz wrote (to his governors) to prevent Jews and Christians from entering the Masjids of Muslims, and he followed his order with Allah's statement,
إِنَّمَا الْمُشْرِكُونَ نَجَسٌ
(Verily, the Mushrikin are impure.) `Ata' said, "All of the Sacred Area the Haram is considered a Masjid, for Allah said,