Language:
كتاب الاعتصام بالكتاب والسنة
96  
Holding Fast to the Qur'an and Sunnah
(24)
Chapter: The laws inferred from certain evidences; and the meaning of an evidence
(24)
باب الأَحْكَامِ الَّتِي تُعْرَفُ بِالدَّلاَئِلِ، وَكَيْفَ مَعْنَى الدِّلاَلَةِ وَتَفْسِيرِهَا
Sahih al-Bukhari 7359

Narrated Jabir bin `Abdullah:

The Prophet (ﷺ) said, "Whoever has eaten garlic or onion, should keep away from us, or should keep away from our mosque and should stay at home." Ibn Wahb said, "Once a plate full of cooked vegetables was brought to the Prophet (ﷺ) at Badr. Detecting a bad smell from it, he asked about the dish and was informed of the kinds of vegetables in contained. He then said, "Bring it near," and so it was brought near to one of his companions who was with him. When the Prophet (ﷺ) saw it, he disliked eating it and said (to his companion), "Eat, for I talk in secret to ones whom you do not talk to."

حَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ، حَدَّثَنَا ابْنُ وَهْبٍ، أَخْبَرَنِي يُونُسُ، عَنِ ابْنِ شِهَابٍ، أَخْبَرَنِي عَطَاءُ بْنُ أَبِي رَبَاحٍ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏"‏ مَنْ أَكَلَ ثُومًا أَوْ بَصَلاً، فَلْيَعْتَزِلْنَا أَوْ لِيَعْتَزِلْ مَسْجِدَنَا، وَلْيَقْعُدْ فِي بَيْتِهِ ‏"‏‏.‏ وَإِنَّهُ أُتِيَ بِبَدْرٍ ـ قَالَ ابْنُ وَهْبٍ يَعْنِي طَبَقًا ـ فِيهِ خَضِرَاتٌ مِنْ بُقُولٍ، فَوَجَدَ لَهَا رِيحًا فَسَأَلَ عَنْهَا ـ أُخْبِرَ بِمَا فِيهَا مِنَ الْبُقُولِ ـ فَقَالَ قَرِّبُوهَا فَقَرَّبُوهَا إِلَى بَعْضِ أَصْحَابِهِ كَانَ مَعَهُ، فَلَمَّا رَآهُ كَرِهَ أَكْلَهَا قَالَ ‏"‏ كُلْ، فَإِنِّي أُنَاجِي مَنْ لاَ تُنَاجِي ‏"‏‏.‏ وَقَالَ ابْنُ عُفَيْرٍ عَنِ ابْنِ وَهْبٍ بِقِدْرٍ فِيهِ خَضِرَاتٌ‏.‏ وَلَمْ يَذْكُرِ اللَّيْثُ وَأَبُو صَفْوَانَ عَنْ يُونُسَ قِصَّةَ الْقِدْرِ، فَلاَ أَدْرِي هُوَ مِنْ قَوْلِ الزُّهْرِيِّ أَوْ فِي الْحَدِيثِ‏.‏
Reference : Sahih al-Bukhari 7359
In-book reference : Book 96, Hadith 86
USC-MSA web (English) reference : Vol. 9, Book 92, Hadith 458
  (deprecated numbering scheme)