Sunan Ibn Majah · Hadith 229
The Book of the Sunnah - كتاب المقدمة
حدثنا هشام بن عمار، حدثنا حفص بن سليمان، حدثنا كثير بن شنظير، عن محمد بن سيرين، عن أنس بن مالك، قال قال رسول الله صلى الله عليه وسلم " طلب العلم فريضة على كل مسلم وواضع العلم عند غير أهله كمقلد الخنازير الجوهر واللؤلؤ والذهب " .
It was narrated that Anas bin Malik said: "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."
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).