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.)
Hadith Referenceمشكوة المصابيح / كتاب الأطعمة / 4197
Hadith Gradingالألبانی:مُتَّفق عَلَيْهِ | زبیر علی زئی:متفق عليه
Hadith Takhrij´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (855) و مسلم (564/73)»