Sayyiduna Hudhayfah (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings be upon him): "Whoever eats this foul fruit should by no means come near our mosque." He said this three times. The narrator named Ishaq says: By this is meant garlic.
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 1643
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «التعليق الرغيب» (1/ 122).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرطهما، إسحاق: هو ابن إبراهيم الحنظلي المعروف بابن راهويه.