(49) باب مَا يُكْرَهُ مِنَ الثُّومِ وَالْبُقُولِ
Narrated `Abdul `Aziz:
It was said to Anas "What did you hear the Prophet (ﷺ) saying about garlic?" Anas replied, "Whoever has eaten (garlic) should not approach our mosque."
Reference: Sahih al-Bukhari 5451
In-book reference: Book 70, Hadith 80
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 7, Book 65, Hadith 362