Hadith 247

Sahih Bukhari

Book 10: Call to Prayers (Adhaan)

Chapter 160

What has been said about uncooked garlic, onion and leek.

باب مَا جَاءَ فِي الثُّومِ النَّىِّ وَالْبَصَلِ وَالْكُرَّاثِ

And the statement of the Prophet ﷺ "Whoever has eaten garlic or onion because of hunger or otherwise should not come near our mosque." ​​
وَقَوْلِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَنْ أَكَلَ الثُّومَ أَوِ الْبَصَلَ مِنَ الْجُوعِ أَوْ غَيْرِهِ فَلاَ يَقْرَبَنَّ مَسْجِدَنَا».
Sahih al-Bukhari 856
حَدَّثَنَا أَبُو مَعْمَرٍ، قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنْ عَبْدِ الْعَزِيزِ، قَالَ سَأَلَ رَجُلٌ أَنَسًا مَا سَمِعْتَ نَبِيَّ اللَّهِ صلى الله عليه وسلم فِي الثُّومِ فَقَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم ‏ ‏‏.‏
"‏ مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ فَلاَ يَقْرَبْنَا، أَوْ لاَ يُصَلِّيَنَّ مَعَنَا ‏"
`Abdul `Aziz:

A man asked Anas, "What did you hear from the Prophet (ﷺ) about garlic?" He said, "The Prophet (ﷺ) said, 'Whoever has eaten this plant should neither come near us nor pray with us."