«كلوه ومن أكل منكم فلا يقرب هذا المسجد حتى يذهب ريحه منه» - يعني الثوم -
The Prophet (peace and blessings be upon him) said:
"Eat it, and whoever of you eats it should not come near this mosque until its smell has gone (that is, after eating garlic)."
Hadith Referenceصحیح الجامع الصغیر / حرف الكاف / 4507