Hadith 1668

نا عَبْدُ اللَّهِ بْنُ هَاشِمٍ ، حَدَّثَنَا بَهْزُ بْنُ أَسَدٍ ، نا يَزِيدُ وَهُوَ ابْنُ إِبْرَاهِيمَ التُّسْتَرِيُّ ، عَنْ أَبِي الزُّبَيْرِ ، عَنْ جَابِرٍ ، أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ نَهَى عَنْ أَكْلِ الْبَصَلِ وَالْكُرَّاثِ . قَالَ : وَلَمْ يَكُنْ بِبَلَدِنَا يَوْمَئِذٍ الثُّومُ ، فَقَالَ : " مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلا يَقْرَبَنَّ مَسْجِدَنَا ؛ فَإِنَّ الْمَلائِكَةَ تَتَأَذَّى مِمَّا يَتَأَذَّى مِنْهُ الإِنْسَانُ "
It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) forbade eating onions and wild garlic. He said that in those days, garlic was not found in our area. So the Prophet (peace and blessings be upon him) said: "Whoever has eaten from this plant should by no means come near our mosque, because the angels are harmed by that which harms human beings."
Hadith Reference صحيح ابن خزيمه / جماع أبواب العذر الذى يجوز فيه ترك إتيان الجماعة / 1668
Hadith Takhrij صحيح مسلم