ENOfficial
Ibn Juraij has narrated it with the same chain of transmitters: 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.
Source: sunnah.com
Other translations
Arabic
وَحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، أَخْبَرَنَا مُحَمَّدُ بْنُ بَكْرٍ، ح قَالَ وَحَدَّثَنِي مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، قَالاَ جَمِيعًا أَخْبَرَنَا ابْنُ جُرَيْجٍ، بِهَذَا الإِسْنَادِ " مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ - يُرِيدُ الثُّومَ - فَلاَ يَغْشَنَا فِي مَسْجِدِنَا " . وَلَمْ يَذْكُرِ الْبَصَلَ وَالْكُرَّاثَ .
sunnah.com