Foods (Kitab Al-At'imah)

Dawud :: Book 27 : Hadith 3818

Narrated Mu'awiyah ibn Qurrah:

The Apostle of Allah (peace_be_upon_him) forbade these two plants (i.e. garlic and onions), and he said: He who eats them should not come near our mosque. If it is necessary to eat them, make them dead by cooking, that is, onions and garlic.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star