Hadith 1661

نا بُنْدَارٌ ، وَأَبُو مُوسَى ، قَالا : حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ ، عَنْ عُبَيْدِ اللَّهِ ، أَخْبَرَنِي نَافِعٌ ، عَنِ ابْنِ عُمَرَ ، أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ فِي غَزْوَةِ خَيْبَرَ : " مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ يَعْنِي الثُّومَ فَلا يَأْتِيَنَّ الْمَسَاجِدَ " . وَقَالَ بُنْدَارٌ : قَالَ : حَدَّثَنَا عُبَيْدُ اللَّهِ ، وَقَالَ : عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : " مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ ، فَلا يَقْرَبَنَّ الْمَسَاجِدَ "
It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said on the occasion of the Battle of Khaybar: "Whoever has eaten from this plant, that is, garlic, should by no means come to the mosque." In the narration of Janab Ubaydullah, it is stated that the Noble Prophet (peace and blessings be upon him) said: "Whoever has eaten from this plant should by no means go near the mosques."
Hadith Reference صحيح ابن خزيمه / جماع أبواب العذر الذى يجوز فيه ترك إتيان الجماعة / 1661
Hadith Takhrij صحيح بخاري