Sahih Muslim
The Book of Mosques and Places of Prayer — Hadith #1155
Scholarly Consensus: Sahih How we grade
وَحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، أَخْبَرَنَا مُحَمَّدُ بْنُ بَكْرٍ، ح قَالَ وَحَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، قَالاَ جَمِيعًا أَخْبَرَنَا ابْنُ جُرَيْجٍ، بِهَذَا الإِسْنَادِ
" مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ - يُرِيدُ الثُّومَ - فَلاَ يَغْشَنَا فِي مَسْجِدِنَا " . وَلَمْ يَذْكُرِ الْبَصَلَ وَالْكُرَّاثَ .
He who eats of this plant, i. e. garlic, should not come to us in our mosque, and he made no mention of onions or leek.
Chain of Narration (Isnad)
Hadith Grading
Each grade below reflects one scholar's assessment of the chain of transmission. The grade describes the chain, not the Prophet's words. How we grade
Scholarly Consensus: Sahih