Jabir bin Abdullah reported,

The Prophet ﷺ said, "Whoever eats from this plant, garlic," and on another occasion he said, "Whoever eats onions, garlic, and leeks, let him not come near our mosque, for the angels are offended by what offends the children of Adam."

Azami 7402

Sahih

عن جابر بن عبد الله

عن النبي ﷺ قال: من أكل من هذه البقلة الثوم- وقال مرة: من أكل البصل والثوم والكراث- فلا يقربن مسجدنا، فإن الملائكة تتأذى مما تتأذى منه بنو آدم.

الأعظمي 7402صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Foods
Chapter
Foods other than meat
Section
Eating garlic, onions, and leeks
Numbering
Jami al-Kamil 7402 (2nd edition)
Azami 7402