The Messenger of Allah ﷺ passed by a field of onions along with his companions. Some of them dismounted and ate from it, while others did not. Then we went to him in the evening, and he called forward those who had not eaten the onions and kept the others back until the smell had gone.
أن رسول الله ﷺ مر على زراعة بصل هو وأصحابه، فنزل ناس منهم فأكلوا منه، ولم يأكل آخرون، فرحنا إليه، فدعا الذين لم يأكلوا البصل، وأخر الآخرين حتى ذهب ريحها.
Muslim narrated it in "The Masjids" (566) via Ibn Wahb, who said, Amr informed me, from Bukayr Ashaj, from Ibn Khabab (who is Abdullah), from Abu Saeed Khudri, and he related it.On this subject there is also a report from Abu Saeed Khudri that garlic and onion were mentioned in the presence of the Messenger of Allah ﷺ, and it was said, "O Messenger of Allah, the strongest of all of that is garlic, so do you forbid it?" The Prophet ﷺ said, "Eat it, and whoever among you eats it should not come near this masjid until its smell has left him."Abu Dawud narrated it (3823) from Ahmad bin Salih, who said, Ibn Wahb narrated to us, he said, Amr informed me, that Bakr bin Sawada told him, that Abu Najeeb, the freed slave of Abdullah bin Saad, told him, that Abu Saeed Khudri told him, and he related it.Ibn Khuzayma graded it sahih (1669) via Yunus bin Abdul-Ala, from Ibn Wahb with his chain, adding "and leeks."In the chain is Abu Najeeb, whom no one deemed reliable except Ibn Hibban, which is why Hafiz said of him, "Acceptable," meaning when corroborated, otherwise his hadith is weak, and I did not find anyone who corroborated him.The rest of his narrators are reliable, and Amr is Ibn Harith the Egyptian, a reliable jurist.