Sunan Ibn Majah, Book 5, Hadith 1067 (In-Book) ⓘ
It was narrated from Ma’dan bin Abu Talhah Al-Ya’muri that ‘Umar bin Khattab stood up one Friday to deliver a sermon, or, he delivered a sermon one Friday. He praised Allah, then he said: “O people, you eat two plants that I find are nothing but obnoxious; this garlic and this onion. At the time of the Messenger of Allah, if a foul odour was detected from a man, I would see him seized by the arm and taken out to Al-Baqi’. Whoever must eat them, let him cook them to death.”
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ، عَنْ سَعِيدِ بْنِ أَبِي عَرُوبَةَ، عَنْ قَتَادَةَ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ الْغَطَفَانِيِّ، عَنْ مَعْدَانَ بْنِ أَبِي طَلْحَةَ الْيَعْمُرِيِّ، أَنَّ عُمَرَ بْنَ الْخَطَّابِ، قَامَ يَوْمَ الْجُمُعَةِ خَطِيبًا - أَوْ خَطَبَ يَوْمَ الْجُمُعَةِ - فَحَمِدَ اللَّهَ وَأَثْنَى عَلَيْهِ ثُمَّ قَالَ يَا أَيُّهَا النَّاسُ إِنَّكُمْ تَأْكُلُونَ شَجَرَتَيْنِ لاَ أُرَاهُمَا إِلاَّ خَبِيثَتَيْنِ هَذَا الثُّومُ وَهَذَا الْبَصَلُ وَلَقَدْ كُنْتُ أَرَى الرَّجُلَ عَلَى عَهْدِ رَسُولِ اللَّهِ ـ صلى الله عليه وسلم ـ يُوجَدُ رِيحُهُ مِنْهُ فَيُؤْخَذُ بِيَدِهِ حَتَّى يُخْرَجَ إِلَى الْبَقِيعِ فَمَنْ كَانَ آكِلَهَا لاَ بُدَّ فَلْيُمِتْهَا طَبْخًا .
also referenced under: Hadith 1014 (Reference) & Volume 2, Book 5, Hadith 1014 (DarusSalam)