Hadith 9545

حَدَّثَنَا يَحْيَى ، عَنْ مُحَمَّدِ بْنِ عَمْرٍو ، قَالَ : حَدَّثَنِي أَبُو سَلَمَةَ ، عَنْ أَبِي هُرَيْرَة ، قَالَ : وَجَدَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رِيحَ ثُومٍ فِي الْمَسْجِدِ ، فَقَالَ : " مَنْ أَكَلَ مِنْ هَذِهِ الشَّجَرَةِ الْخَبِيثَةِ ، فَلَا يَقْرَبَنَّ مَسْجِدَنَا " .
It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) smelled the odor of garlic in the mosque, so the Noble Prophet (peace and blessings be upon him) said: Whoever eats from this foul tree (garlic) should not come near our mosque.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 9545
Hadith Grading حکم دارالسلام: حدیث صحیح ، وھذا إسناد حسن ، م : 563