Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:224Hishām b. ʿAmmār > Ḥafṣ b. Sulaymān > Kathīr b. Shinẓīr > Muḥammad b. Sīrīn > Anas b. Mālik

"Seeking knowledge is a duty upon every Muslim, and he who imparts knowledge to those who do not deserve it, is like one who puts a necklace of jewels, pearls and gold around the neck of swines."  

ابن ماجة:٢٢٤حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ حَدَّثَنَا حَفْصُ بْنُ سُلَيْمَانَ حَدَّثَنَا كَثِيرُ بْنُ شِنْظِيرٍ عَنْ مُحَمَّدِ بْنِ سِيرِينَ عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ طَلَبُ الْعِلْمِ فَرِيضَةٌ عَلَى كُلِّ مُسْلِمٍ وَوَاضِعُ الْعِلْمِ عِنْدَ غَيْرِ أَهْلِهِ كَمُقَلِّدِ الْخَنَازِيرِ الْجَوْهَرَ وَاللُّؤْلُؤَ وَالذَّهَبَ  


See similar narrations below:

Collected by Suyūṭī
suyuti:15361a
Request/Fix translation

  

السيوطي:١٥٣٦١a

"طَلَبُ العِلم فريضةٌ عَلَى كل مُسلِمٍ , وَوَاضِعُ العِلم عِندَ غيرِ أَهْلِهِ كَمُقَلِّدِ الخنازيرَ الجَوْهَرَ، واللُّؤْلؤَ وَالذهَبَ".  

[هـ] ابن ماجة عن أَنس