Narrated Abu Saeed al-Khudri: The garlic and onions were mentioned before the Messenger of Allah ﷺ. He was told: The most severe of them is garlic. Would you make it unlawful? The Prophet ﷺ said: Eat it, and he who eats it should not come near this mosque until its odour goes away.
Hadith Referenceسنن ابي داود / كتاب الأطعمة / 3823
Hadith Gradingالألبانی:ضعيف | زبیر علی زئی:إسناده حسن, صححه ابن خزيمة (1669 وسنده حسن) أبو النجيب وثقه ابن خزيمة وابن حبان فھو حسن الحديث
Hadith Takhrij« (تحفة الأشراف: 4438)، وقد أخرجہ: صحیح مسلم/المساجد 17 (566)، مسند احمد (4/252) (صحیح) »