It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that the Prophet (peace and blessings of Allah be upon him) forbade us from (eating) onions and garlic. Rabi' says that I asked Ata regarding this: so he informed me that Sayyiduna Jabir (may Allah be pleased with him) narrated this hadith to me, that the Prophet (peace and blessings of Allah be upon him) forbade this matter.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 15274
Hadith Gradingحکم دارالسلام:حديث صحيح، م: 564، وهذا إسناد ضعيف، الربيع بن صبيح سيئ الحفظ، وقد توبع، وأبو الزبير قد صرح بالسماع عند غير المصنف، وقد توبع أيضا