It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him): "The Messenger of Allah (peace and blessings be upon him) forbade (coming to the mosque after eating) garlic, onions and leeks." We asked: O Abu Sa'id, is it unlawful? He replied: "No." I say: Imam Abu Dawud narrated it in his Sunan through Abu al-Najib (the freed slave of Abdullah bin Sa'd), that Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) told him: "Garlic and onions were mentioned in the presence of the Prophet (peace and blessings be upon him), and it was said: O Messenger of Allah, the strongest (most offensive) smell among them is that of garlic; do you then declare it unlawful? The Prophet (peace and blessings be upon him) said: Eat it, but whoever of you eats it should not come near this mosque of ours until its smell has gone." Some hadith of this chapter have already come in the Book of Mosques and the Book of Opening the Prayer.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لضعف بشر بن حرب، وأصل النهي عن الثوم والبصل في صحيح مسلم من حديث أبي سعيد
Hadith Takhrij«بشر بن حرب: إسناده فيه لين لأجله (المطالب المحققة ١٢٤٣)، وقال البوصيري: ضعيف» «أخرجه سنن أبي داود برقم: 3823، وأخرجه مسند أحمد برقم: 10700، 11189، 11229، 11396، وأخرجه فتح الباري برقم: 815، 818، 5136، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 8059، وأخرجه صحيح ابن حبان برقم: 2085»