Ibn 'Umar (May Allah be pleased with them) said:
The Prophet (ﷺ) said, "He who has eaten garlic should not come to our mosque."[Al-Bukhari and Muslim].The narration in Muslim is: "He who has eaten garlic should not come to our mosques." (JA)
App reference (JA): Book 18, Hadith 191 (JA)
Arabic/English book reference (JA): Book 18, Hadith 1701 (JA)