Abu Dawud
Foods
Book Number: 021 / Hadith Number: 3814
Narated By AbuSa'id al-Khudri : The garlic and onions were mentioned before the Apostle of Allah (pbuh). He was told: The most severe of them is garlic. Would you make it unlawful? The Prophet (pbuh) said: Eat it, and he who eats it should not come near this mosque until its odour goes away.