It was said to Anas "What did you hear the Prophet (ﷺ) saying about garlic?" Anas replied…

Sahih al-Bukhari Book 70 Hadith 80

Sahih al-Bukhari #5451

Food, Meals 70:80

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."

Chapter: The eating of garlic or other (bad smelling vegetables).

Grade: Sahih