Zayd bin Arqam reported,

The Prophet ﷺ used to say, "Allah, I seek refuge in You from knowledge that brings no benefit, from a heart that does not feel awe, from a soul that is never satisfied, and from a supplication that goes unanswered."

Azami 1305

Sahih

عن زيد بن أرقم

أن النبي ﷺ كان يقول: اللهم إني أعوذ بك من علم لا ينفع، ومن قلب لا يخشع، ومن نفس لا تشبع، ومن دعوة لا يستجاب لها.

الأعظمي 1305صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Knowledge
Chapter
Warnings in matters of knowledge
Section
Warning for the scholar who does not act upon his knowledge, even if others benefit from his knowledge
Numbering
Jami al-Kamil 1305 (2nd edition)
Azami 1305