It is narrated from Jabir (may Allah be pleased with him) that he (peace and blessings be upon him) said: "Whoever eats garlic," then he said: "Whoever eats garlic, onions and leeks, let him not come near our mosque, for the angels are harmed by what harms human beings."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5053