عَنْ عُمَرَ بْنِ الْخَطَّابِ رَضِيَ اللَّهُ عَنْهُ أَنَّهُ قَالَ فِي خُطْبَةٍ لَهُ: ثُمَّ إِنَّكُمْ أَيُّهَا النَّاسُ تَأْكُلُونَ مِنْ شَجَرَتَيْنِ لَا أُرَاهُمَا إِلَّا خَبِيثَتَيْنِ، هَٰذَا الثُّومُ وَالْبَصَلُ، وَأَيْمُ اللَّهِ! لَقَدْ كُنْتُ أَرَى النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يَجِدُ رِيحَهَا مِنَ الرَّجُلِ فَيَأْمُرُ بِهِ فَيُؤْخَذُ بِيَدِهِ فَيُخْرَجُ بِهِ مِنَ الْمَسْجِدِ حَتَّى يُؤْتَى بِهِ الْبَقِيعَ، فَمَنْ أَكَلَهَا فَلَا بُدَّ، فَلْيُمِتْهَا طَبْخًا
Sayyiduna Umar bin Khattab (may Allah be pleased with him) said in one of his sermons: O people! You eat two plants, garlic and onion; I consider them to be foul (disliked). By Allah! I saw the Noble Prophet (peace and blessings be upon him), whenever he sensed their smell from someone, he would order such that the person’s hand would be taken and he would be led out of the mosque, until he was brought to the Baqi’ place. If anyone must eat them, then he should cook them to eliminate their odor.