Abu Dawud Book 21, Hadith Number 3814.
Chapter : Not known.
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.