كتاب المساجد
8  
The Book of the Masjids
(16)
Chapter: Who Should Be Prevented In The Masjid
(16)
باب مَنْ يُمْنَعُ مِنَ الْمَسْجِدِ
Sunan an-Nasa'i 707
It was narrated that Jabir said:
"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.
أَخْبَرَنَا إِسْحَاقُ بْنُ مَنْصُورٍ، قَالَ حَدَّثَنَا يَحْيَى، عَنِ ابْنِ جُرَيْجٍ، قَالَ حَدَّثَنَا عَطَاءٌ، عَنْ جَابِرٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ ‏"‏ ‏.‏ قَالَ أَوَّلَ يَوْمٍ ‏"‏ الثُّومِ ‏"‏ ‏.‏ ثُمَّ قَالَ ‏"‏ الثُّومِ وَالْبَصَلِ وَالْكُرَّاثِ فَلاَ يَقْرَبْنَا فِي مَسَاجِدِنَا فَإِنَّ الْمَلاَئِكَةَ تَتَأَذَّى مِمَّا يَتَأَذَّى مِنْهُ الإِنْسُ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan an-Nasa'i 707
In-book reference : Book 8, Hadith 20
English translation : Vol. 1, Book 8, Hadith 708