Abdullah bin Zayd reported,

The Messenger of Allah ﷺ said, "Whoever eats from this plant should not come near our mosques," meaning garlic.

Azami 3152

Sahih

عن عبد الله بن زيد قال

قال رسول الله ﷺ: من أكل من هذه الشجرة، فلا يقربن مساجدنا يعني الثوم.

الأعظمي 3152صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Prohibition of coming to the mosques after eating garlic, onions, and leeks
Numbering
Jami al-Kamil 3152 (2nd edition)
Azami 3152