"The Messenger of Allah (ﷺ) said: 'Whoever eats of this plant' - the first time he said 'garlic' then he said, 'garlic, onions and leeks' [1] - 'let him not approach us in our Masjids, for the angels are offended by that which offends mankinds.'" [1] In Fath, Al-Bari, Ibn Hajar is of the opinion that it was Ibn Juraij who was talking, explaining that 'Ata' - who reported it from Jabir - narrated it both ways.
Reference: Sunan an-Nasa'i 707 In-book : Book 8, Hadith 20 English translation : Vol. 1, Book 8, Hadith 708
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.