(a) Sayyiduna Abu Hurayrah (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) said: "Whoever eats of this plant (meaning garlic), let him not trouble us in our mosques."
(b) In the narration of Muhammad bin Rafi': "Let him not come near our mosque, and let him not trouble us with the smell of garlic."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5052