Riyad as-Salihin, Book 18, Hadith 1701 (In-Book) ⓘ
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."
عن ابن عمر رضي الله عنه أن النبي صلى الله عليه وسلم قال: "من أكل من هذه الشجرة -يعني الثوم- فلا يقربن مسجدنا" ((متفق عليه)). وفي رواية لمسلم: "مساجدنا".