صحيح البخاري
From Sahih Bukhari (Hadith 5451):
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: Bukhari 5451