Hammād ibn Salamah also related—through Ḥumayd, from al-Ḥasan, from ʿUthmān ibn Abī al-ʿĀṣ—that when the delegation of Thaqīf came to the Messenger of Allah ﷺ, he pitched a pavilion for them inside the mosque. They said, “Messenger of Allah, we are a people who are impure.” He replied, “Nothing on earth becomes impure on account of human beings; people’s impurity is confined to their own selves.”
Yūnus likewise transmitted—from al-Zuhrī, from Ibn al-Musayyab—that Abū Sufyān used to enter the Prophet’s mosque while still a disbeliever, though this is not permissible in the Sacred Mosque, in view of Allah’s words: “so let them not come near the Sacred Mosque” (Qur’an 9:28).
Abū Bakr [al-Jaṣṣāṣ] said: “As for the delegation of Thaqīf, they came to the Prophet ﷺ after the Conquest of Mecca, and the verse was revealed in the year Abū Bakr performed the pilgrimage, the ninth year. The Prophet lodged them in the mosque and declared that their being ‘impure’ did not bar them from entering it. This indicates that the ritual impurity of disbelief does not prevent a non-Muslim from entering a mosque.
“As for Abū Sufyān, he came to the Prophet ﷺ to renew the truce before the Conquest, and at that time he was still a polytheist. Although the verse was revealed later, it merely forbids them to approach the Sacred Mosque; it does not prohibit disbelievers from entering other mosques.”
In short, the authenticity of this additional wording remains in question, for al-Bayhaqī records it as mursal, and we have not found it with a fully connected chain except in Abū Bakr al-Jaṣṣāṣ’s hanging citation.
I state this even though Ṣiddīq Ḥasan Khān cited the report as evidence in al-Rawḍah al-Nadiyyah.