مشكوة المصابيح Mishkat al-Masabih كتاب الصلاة The Book of Prayer
(مَنْعُ دُخُولِ ٱلْمَسْجِدِ بَعْدَ أَكْلِ شَيْءٍ ذِي رَائِحَةٍ كَرِيهَةٍ)

(Prohibition of entering the mosque after eating something with a bad odor)

1 hadith
Hadith 707
وَعَنْ جَابِرٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْمُنْتِنَةِ فَلَا يَقْرَبَنَّ مَسْجِدَنَا فَإِنَّ الْمَلَائِكَةَ تَتَأَذَّى مِمَّا يَتَأَذَّى مِنْهُ الْإِنْسُ»
Jabir reported God’s Messenger as saying, “If anyone eats of this offensive tree* he must not approach our mosque, for the angels are harmed by the same things as men.” * Bukhari At’ima, 49, shows the Prophet’s objection to onions and garlic. One of these may be meant here. (Bukhari and Muslim.)
Hadith Reference Mishkat al-Masabih / The Book of Prayer / Hadith: 707
Hadith Grading الألبانی: مُتَّفَقٌ عَلَيْهِ  |  زبیر علی زئی: متفق عليه
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «متفق عليه، رواه البخاري (854، 855) و مسلم (72/ 564)»