It is narrated from Sayyiduna Ma'qil bin Yasar (may Allah be pleased with him): "We were with the Prophet (peace and blessings be upon him) on a journey, and we camped at a place where this garlic grew. Some people among the Muslims ate of it and then came to pray with the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) forbade them (from doing so). Afterwards, when they came to the place of prayer again, he (peace and blessings be upon him) noticed the smell of garlic from them, and then he (peace and blessings be upon him) said: 'Whoever has eaten anything of this plant must not come near our place of prayer.'" The author of the book says that other hadith of this kind will come later, if Allah Almighty wills, in the Book of Foods (Kitab al-At'imah).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 1022
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لجهالة أبي الرباب مولى معقل بن يسار
Hadith Takhrij«الحكم بن عطية العيشي: صدوق له أوهام (التقريب)؛ أبو الرباب مولى معقل: ليس في التقريب ولا الكاشف، ولم أقف فيه على توثيق معتبر» «أخرجه مسند أحمد برقم: 19791، وأخرجه المعجم الصغير للطبراني برقم: 826»