Hadithcore
Riyad as-Salihin, 1702

Anas (May Allah be pleased with him) said:

The Prophet (ﷺ) said, "He who has eaten from this plant (i.e., garlic) should not approach us and should not offer Salat (prayer) along with us." <b>[Al- Bukhari and Muslim]</b>.

وعن أنس رضي الله عنه قال‏:‏ قال النبي صلى الله عليه وسلم ‏:‏ ‏

‏من أكل من هذه الشجرة، فلا يقربنا، ولا يصلين معنا‏

‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

References1 variant
In-Book Reference
Book 17, Hadith 192
Sharh · explanationclick to expand
<b>Guidance from the Hadiths:</b><br> 1) It is prohibited to go to the mosque after eating garlic, onions, or the like of such plants that have a bad odor.<br> 2) Angels get annoyed by what annoys humans. So, a Muslim should be good-smelling, especially in places of worship and Muslim gatherings; most notable among them is prayer and learning classes.<br> Note:<br> It is permissible to eat onions and garlic. Yet, he who has eaten any of them should avoid going to the mosque to attend the congregational prayer. However, if he uses some substance that removes the bad odor, then he can go to the mosque. But it is not permissible for a person to intentionally eat onions or garlic to skip the congregational prayer in the mosque.
Related hadiths4
Compare isnād across 4 related chains →