Full Sharh — Mishkat al-Masabih 4027
وَعَنْ جَابِرٌ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «مَنْ أَكَلَ ثُومًا أَوْ بَصَلًا فَلْيَعْتَزِلْنَا» أَوْ قَالَ: «فَلْيَعْتَزِلْ مَسْجِدَنَا أَوْ لِيَقْعُدْ فِي بَيْتِهِ» . وَإِنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ أُتِيَ بِقِدْرٍ فِيهِ خَضِرَاتٌ مِنْ بُقُولٍ فَوَجَدَ لَهَا رِيحًا فَقَالَ: «قَرِّبُوهَا» إِلَى بَعْضِ أَصْحَابِهِ وَقَالَ: «كُلْ فَإِنِّي أُنَاجِي مَنْ لَا تُناجي»
English Translation
Jabir reported the Prophet as saying, “He who eats garlic or onions must keep away from us.” Or he said, “must keep away from our mosque,” or, “must sit in his house.” A pot containing green vegetables was brought to the Prophet, but on noticing that it had an odour he told them to give it to one of his Companions, to whom he said, "Eat, for I hold intimate converse with one with whom you do not."* *The reference is here said to be to angels, or particularly to Gabriel. Cf. Mirqat, iv, 373 (Bukhari and Muslim.)
Source
Mishkat al-Masabih(مشكاة المصابيح)
Foods
Hadith Number
4027