Jabir bin Abdullah reported,

The Messenger of Allah ﷺ said, on the first day, "Whoever eats from this plant, garlic," then he said, "garlic, onions, and leeks, let him not come near us in our mosques, for the angels are offended by what offends humans."

Nasai 708

Sahih

أخبرنا إسحق بن منصور قال حدثنا يحيى عن ابن جريج قال حدثنا عطاء

عن جابر قال

قال رسول الله ﷺ من أكل من هذه الشجرة قال أول يوم الثوم ثم قال الثوم والبصل والكراث فلا يقربنا في مساجدنا فإن الملائكة تتأذى مما يتأذى منه الإنس

النسائي 708صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Mosques
Chapter
Those who are prevented from the masjid
Numbering
Darussalam 708
Nasai 708