Abdullah bin Umar reported,

The Prophet ﷺ said during the expedition of Khaybar, "Whoever has eaten from this plant, meaning garlic, must not come near our mosque."

Azami 3143

Sahih

عن ابن عمر

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

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