Abu Dawud
Foods
Book Number: 021 / Hadith Number: 3818
Narated By Mu'awiyah ibn Qurrah : The Apostle of Allah (pbuh) 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.