It is narrated from Sayyiduna Abu al-Darda' (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The one who teaches knowledge and the one who learns knowledge are both equal partners in good, and there is no good in the rest of the people besides them."
I say: This hadith has a supporting narration (shahid) from the narration of Sayyiduna Abu Umamah al-Bahili (may Allah be pleased with him), which Imam Ibn Majah recorded in his Sunan.
And his (peace and blessings be upon him) saying, "and there is no good in the rest of the people," means the people other than the scholar and the student, and in meaning it is close to his (peace and blessings be upon him) noble saying: "The world is cursed, and what is in it is cursed, except the remembrance of Allah and what is connected to it, and a scholar and a student."
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 292
Hadith Gradingمحدثین:إسناده حسن لغيره؛ لشاهده
Hadith Takhrij«أخرجه سنن الترمذي برقم: 2322، وأخرجه سنن ابن ماجه برقم: 4112، وأخرجه مسند البزار برقم: 1736، وأخرجه رياض الصالحين برقم: 503، 1438، وأخرجه شرح السنة برقم: 4028، وأخرجه مجمع الزوائد ومنبع الفوائد برقم: 493»