Musa bin Isma'il added to it, from Abd al-Wahid: "Except for Muhammad (peace and blessings be upon him) and the family of Muhammad." Al-Bukhari said: Jasrah has strange reports.
Al-Bukhari said: Urwah and Abbad bin Abdullah narrated from Sayyidah Aishah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: "Close all the other doors except the door of Abu Bakr (may Allah be pleased with him)." And this is more authentic.
The Shaykh said: If this (previous report) is authentic, then with regard to the person in a state of major impurity (junub) it is understood to refer to staying in the mosque, not passing through it, on the evidence of the Book.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4324