It is narrated from Sayyiduna Abu Sa'id (may Allah be pleased with him) that Khaybar had only just been conquered when we fell upon these vegetables, namely garlic and onions, and ate our fill of them, because the people were hungry. Then, when we came to the mosque, the Messenger of Allah (peace and blessings be upon him) noticed their smell and said: "Whoever has eaten anything of this unpleasant plant should not come near us in the mosque." Hearing this, the people began to say: "It has been made unlawful, it has been made unlawful!" When this reached the Messenger of Allah (peace and blessings be upon him), he (peace and blessings be upon him) said: "O people, I have no authority to make unlawful what Allah Almighty has made lawful, but it is a plant whose smell I dislike."
Hadith Referenceمسند أبي يعلى الموصلي / من مسند أبي سعيد الخدري / 1195
Hadith Gradingمحدثین:إسناده صحيح
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح . » «قال سعيد بن محمد السناري: صحيح» «أخرجه سنن أبي داود برقم: 3823، وأخرجه مسند أحمد برقم: 10700، 11189، 11229، 11396، وأخرجه فتح الباري برقم: 815، 818، 5136، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 8059، وأخرجه شرح معاني الآثار برقم: 6612، وأخرجه البحر الزخار المعروف بمسند البزار 10 - 18 برقم: 5859، وأخرجه الأوسط في السنن والإجماع والاختلاف برقم: 6062، وأخرجه شرح السنة برقم: 2733، مسند ابویعلیٰ ترقیم الاثری: 1190»