The Messenger of Allah ﷺ said, "Whoever has eaten from this plant should not come near our mosque, nor trouble us with the smell of garlic."
قال رسول الله ﷺ: من أكل من هذه الشجرة فلا يقربن مسجدنا، ولا يؤذينا بريح الثوم.
Muslim narrated it in "The Mosques" (563:71) through the route of Abdul-Razzaq, who reported to us from Maamar, from Zuhri, from Ibn Musayab, from Abu Hurairah, who mentioned it.