Abdullah bin Umar reported,

The Prophet ﷺ said, "Whoever seeks knowledge to argue with the foolish, or to boast with it before scholars, or to draw people's faces toward himself, is in the Fire."

Ibn Majah 253

Daif

حدثنا هشام بن عمار حدثنا حماد بن عبد الرحمن حدثنا أبو كرب الأزدي عن نافع

عن ابن عمر

عن النبي ﷺ قال من طلب العلم ليماري به السفهاء أو ليباهي به العلماء أو ليصرف وجوه الناس إليه فهو في النار

ابن ماجه 253ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Sunnah
Chapter
Benefiting from knowledge and acting upon it
Numbering
Darussalam 253
Ibn Majah 253