Sahih Muslim #1255 · The Book of Marriage

Sahih MuslimIbn Juraij has narrated it with the same chain of transmitters
Sahih Muslim · Book 16 · The Book of Marriage
Sahih Muslim · كتاب 16 · كتاب النكاح
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.
وَحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، أَخْبَرَنَا مُحَمَّدُ بْنُ بَكْرٍ، ح قَالَ وَحَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، قَالاَ جَمِيعًا أَخْبَرَنَا ابْنُ جُرَيْجٍ، بِهَذَا الإِسْنَادِ ‏
"‏ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ - يُرِيدُ الثُّومَ - فَلاَ يَغْشَنَا فِي مَسْجِدِنَا ‏"‏ ‏.‏ وَلَمْ يَذْكُرِ الْبَصَلَ وَالْكُرَّاثَ ‏.‏
Reference : Sahih Muslim 1255In-book reference : Book 5, Hadith 93