Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Whoever acquires knowledge to boast before scholars, to argue with the foolish, or to draw people's attention toward himself, Allah will admit him into Hellfire."

Ibn Majah 260

Daif

حدثنا محمد بن إسمعيل أنبأنا وهب بن إسمعيل الأسدي حدثنا عبد الله بن سعيد المقبري عن جده

عن أبي هريرة قال

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

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