Mishkat al-Masabih #263
Knowledge
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَثَلُ عِلْمٍ لَا يُنْتَفَعُ بِهِ كَمَثَلِ كَنْزٍ لَا يُنْفَقُ مِنْهُ فِي سَبِيل الله» . رَوَاهُ الدَّارمِيّ
Abu Huraira reported God’s messenger as saying, "Knowledge from which no benefit is derived is like a treasure from which nothing is expended in God’s path.” Darimi transmitted it.
Topics
About Mishkat al-Masabih
This hadith is #263 from Mishkat al-Masabih, in the Book of Knowledge.