“Whoever has eaten from this plant must not come near our mosque, nor offend us with the smell of garlic.”
Muslim recorded it—this is his wording—as did Ibn Mājah and Aḥmad. Al-Mundhirī also attributed it to al-Nasāʾī, yet I did not find it in the available copies; perhaps it appears in his Sunan al-Kubrá. This is therefore the fifth ḥadīth, and in the Musnad there is also:
Sixth: ʿAbdullāh ibn ʿUmar
ʿUbaydullāh ibn ʿUmar narrated it from Nāfiʿ, from him, in the wording:
“Whoever has eaten from this plant—meaning garlic—let him not come near our mosque.”
Al-Bukhārī and al-Dārimī recorded it, adding: “during the campaign of Khaybar.” Muslim also recorded it, adding at the end: “until its odor disappears.” Ibn Mājah and Aḥmad likewise recorded it, and through Aḥmad it was transmitted by Abū Dāwūd with the wording: “the mosques.” One version in Muslim reads: “our mosques,” which is the text cited from him by al-Mundhirī; then he said:
“In a narration of the two of them: ‘let him not come to the mosques.’”
I say: that wording is Muslim’s; it includes the additional phrase found in al-Bukhārī. As for the precise wording just cited, I have not located it in al-Bukhārī; al-Ḥāfiẓ, in his commentary on al-Bukhārī, attributed it to Muslim alone. Had it been found in al-Bukhārī himself, he would have cited him, and Allah knows best.
Seventh: al-Mughīra ibn Shuʿba said:
I ate garlic and came to the Prophet’s place of prayer, having already missed one rakʿah. When I entered the mosque the Prophet ﷺ noticed the smell of garlic. After the Messenger of Allah ﷺ completed the prayer, he said: