Hadith Research Libraryمكتبة الحديث والرجال
Mishkat al-Masabih, 218

Hadith text · Matn

وَعَنْ أَنَسِ بْنِ مَالِكٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «طَلَبُ الْعِلْمِ فَرِيضَةٌ عَلَى كُلِّ مُسْلِمٍ وَوَاضِعُ الْعِلْمِ عِنْدَ غير أَهله كمقلد الْخَنَازِير الْجَوْهَر واللؤلؤ وَالذَّهَبَ» . رَوَاهُ ابْنُ مَاجَهْ وَرَوَى الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَانِ إِلَى قَوْلِهِ مُسْلِمٍ. وَقَالَ: هَذَا حَدِيثٌ مَتْنُهُ مَشْهُورٌ وَإِسْنَادُهُ ضَعِيفٌ وَقَدْ رُوِيَ من أوجه كلهَا ضَعِيف

English translation

Anas reported God’s messenger as saying, “The search for knowledge is an obligation laid on every Muslim, but he who commits it to those who are unworthy of it is like one who puts necklaces of jewels, pearls and gold on swine.” Ibn Majah transmitted it. Baihaqi transmitted it in <i>Shu'ab al-iman</i> up to the word “Muslim”, saying that this is a tradition whose text is well known but whose <i>isnad</i> is weak, it being transmitted by many ways all of which are weak.

References1 variant
In-Book Reference
Book 2, Hadith 20