Anas bin Malik reported,

He was asked about garlic, and he replied, "The Messenger of Allah ﷺ said, 'Whoever eats from this plant should not come near us nor pray with us.'"

Azami 3145

Sahih

عن أنس

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

الأعظمي 3145صحيح
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 3145 (2nd edition)
Azami 3145