Hadithcore
Mishkat al-Masabih, 265

Al-A‘mash reported God’s messenger as saying, "The calamity which affects knowledge is forgetfulness, and wasting it is to convey it to those who are unworthy of it.” Darimi transmitted it in <i>mursal</i> form.

وَعَنِ الْأَعْمَشِ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «آفَةُ الْعِلْمِ النِّسْيَانُ وَإِضَاعَتُهُ أَنْ تُحَدِّثَ بِهِ غَيْرَ أَهْلِهِ» . رَوَاهُ الدَّارِمِيُّ مُرْسلا

References1 variant
In-Book Reference
Book 2, Hadith 61