Sahih al-Bukhari · Hadith 5452

Food, Meals

Narrated Jabir bin `Abdullah: The Prophet (ﷺ) said, "Whoever has eaten garlic or onion should keep away from us (or should keep away from our mosque)