It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Do not acquire knowledge in order to rival the scholars with it, nor to argue with the foolish, nor to draw people's attention to yourselves. Whoever does that is in the Fire."
There is a break (inqita') in the chain of this report.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 387
Hadith Gradingمحدثین:إسناده ضعيف؛ لانقطاع رواية الشعبي عن عبد الله بن مسعود
Hadith Takhrij«أخرجه سنن ابن ماجه برقم: 259، وأخرجه المطالب العالية بزوائد المسانيد الثمانية برقم: 3049»