The Book of Prayers (Kitab Al-Salat)
Muslim :: Book 4 : Hadith 1143
Ibn Suhaib reported: Anas was asked about the garlic; he stated that the Messenger of Allah (may peace be upon him) had said: He who eats of this plant (garlic) should not approach us and pray along with us.