It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: The example of knowledge from which no benefit is derived is like a treasure which is not spent in the way of Allah.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 10476
Hadith Gradingحکم دارالسلام:حديث محتمل للتحسين، وهذا إسناد ضعيف، إبراهيم لين