Sahih Muslim
Sahih Muslim 564b
وَحَدَّثَنِي أَبُو الطَّاهِرِ، وَحَرْمَلَةُ، قَالاَ أَخْبَرَنَا ابْنُ وَهْبٍ، أَخْبَرَنِي يُونُسُ، عَنِ ابْنِ شِهَابٍ، قَالَ حَدَّثَنِي عَطَاءُ بْنُ أَبِي رَبَاحٍ، أَنَّ جَابِرَ بْنَ عَبْدِ اللَّهِ، قَالَ - وَفِي رِوَايَةِ حَرْمَلَةَ وَزَعَمَ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً فَلْيَعْتَزِلْنَا أَوْ لِيَعْتَزِلْ مَسْجِدَنَا وَلْيَقْعُدْ فِي بَيْتِهِ " . وَأَنَّهُ أُتِيَ بِقِدْرٍ فِيهِ خَضِرَاتٌ مِنْ بُقُولٍ فَوَجَدَ لَهَا رِيحًا فَسَأَلَ فَأُخْبِرَ بِمَا فِيهَا مِنَ الْبُقُولِ فَقَالَ " قَرِّبُوهَا " . إِلَى بَعْضِ أَصْحَابِهِ فَلَمَّا رَآهُ كَرِهَ أَكْلَهَا قَالَ " كُلْ فَإِنِّي أُنَاجِي مَنْ لاَ تُنَاجِي " .
Abu al-Tahir and Harmala reported to me: They both said: Ibn Wahb informed us: Yunus informed me, from Ibn Shihab, who said: Ata ibn Abi Rabah informed me that Jabir ibn Abdullah said—and in Harmala's version he reported that the Messenger of Allah (peace and blessings be upon him) said: 'Whoever eats garlic or onion should keep away from us—or keep away from our mosque—and remain at home.' A pot containing greens was brought to him, and he noticed an odor from it. He asked and was told which vegetables it contained. He said, 'Bring it near,' and it was brought to one of his companions. When he saw it, he disliked eating it. He said, 'Eat, for I converse with one with whom you do not converse.'