Umar bin Khattab reported,

People, you are eating from two plants which I consider to be nothing but offensive, this onion and garlic. I saw the Prophet of Allah ﷺ, whenever he detected their smell on a man, order him to be taken out to al-Baqi. Whoever eats them, let him kill their odor by cooking them well.

Nasai 709

Sahih

أخبرنا محمد بن المثنى قال حدثنا يحيى بن سعيد قال حدثنا هشام قال حدثنا قتادة عن سالم بن أبي الجعد عن معدان بن أبي طلحة أن

عمر بن الخطاب قال

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

النسائي 709صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Mosques
Chapter
Whoever leaves the masjid
Numbering
Darussalam 709
Nasai 709