Hadith 2090
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said during the Battle of Khaybar: "Whoever eats this plant (i.e., garlic), let him not come to our mosques at all."
Hadith 2091
أَخْبَرَنَا
عَلِيُّ بْنُ عَبْدِ اللَّهِ، حَدَّثَنَا
سُفْيَانُ بْنُ عُيَيْنَةَ، حَدَّثَنِي
عُبَيْدُ اللَّهِ بْنُ أَبِي يَزِيدَ، عَنْ
أَبِيهِ، أَنَّ
أُمَّ أَيُّوبَ أَخْبَرَتْهُ، قَالَتْ: نَزَلَ عَلَيْنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَتَكَلَّفْنَا لَهُ طَعَامًا فِيهِ شَيْءٌ مِنْ بَعْضِ هَذِهِ الْبُقُولِ، فَلَمَّا أَتَيْنَاهُ بِهِ كَرِهَهُ، وَقَالَ لِأَصْحَابِهِ:
"كُلُوهُ، فَإِنِّي لَسْتُ كَأَحَدٍ مِنْكُمْ، إِنِّي أَخَافُ أَنْ أُوذِيَ صَاحِبِي" . قَالَ أَبُو مُحَمَّد: إِذَا لَمْ يُؤْذِ أَحَدًا، فَلَا بَأْسَ بِأَكْلِهِ.
Lady Umm Ayyub (may Allah be pleased with her) said that the Messenger of Allah (peace and blessings be upon him) stayed with us, so we prepared food for him with great care, in which there were some vegetables (such as garlic, onions, etc.). When we presented that food to the Messenger of Allah (peace and blessings be upon him), he did not like it and said to his companions: "You people eat, I am not like you. I fear that I may cause discomfort to my companion (Jibreel or the noble scribes)." Imam Darimi (may Allah have mercy on him) said: When it does not cause harm to anyone, that is, if garlic or onion does not cause discomfort, then there is no problem in eating it. That is, cooked food is permissible.