Imam Hasan al-Basri (may Allah have mercy on him) said: It was asked from the Messenger of Allah (peace and blessings be upon him) about two men from the Children of Israel. One of them was a scholar who would pray and then sit and teach people goodness, and the other was a man who would fast during the day and stand in prayer at night. Which of these two is superior? The Messenger of Allah (peace and blessings be upon him) said: "The superiority of the scholar who prays and then sits and teaches people goodness over the worshipper who fasts during the day and stands in prayer at night is like my superiority over the least of you."
Hadith Referenceسنن دارمي / مقدمه / 351
Hadith Gradingتحقیق (حسین سلیم أسد الدارانی):رجاله ثقات غير أنه منقطع: ما عرفنا للأوزاعي رواية عن الحسن وهو مرسل أيضا، [مكتبه الشامله نمبر: 352]
Hadith Takhrijاس روایت کی سند میں انقطاع اور ارسال ہے، اوزاعی کا لقاء حسن بصری سے ثابت نہیں، اور حسن بصری نے اسے مرسلاً روایت کیا ہے۔ «وانفرد به الدارمي»۔
Brief Explanation
(Commentary on Hadiths 349 to 351) This is the statement of Hasan al-Basri, from which it is understood that along with worship, imparting knowledge of the religion is a highly virtuous act, and such a teacher possesses much greater virtue than a mere worshipper.