Hadith.4268 - Shu'ayb narrated from Abu Basir who said
Abu Abdillah (as) was asked about garlic, onions, and leeks.
Imam (as) said: "There is no harm in eating them raw or cooked in pots, and there is no harm in using garlic as a remedy. However, if one does so, let him not go to the mosque."