Jabir ibn Abdullah reported: The Prophet, peace and blessings be upon him, said, “Do not acquire knowledge to impress the scholars, nor to argue with the fools, and do not seek the best seat in the gathering by it. Whoever does so, then to the Hellfire, the Hellfire!”
Source: Sunan Ibn Mājah 254
Grade: Sahih (authentic) according to Al-Albani
عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ قَالَ لَا تَعَلَّمُوا الْعِلْمَ لِتُبَاهُوا بِهِ الْعُلَمَاءَ وَلَا لِتُمَارُوا بِهِ السُّفَهَاءَ وَلَا تَخَيَّرُوا بِهِ الْمَجَالِسَ فَمَنْ فَعَلَ ذَلِكَ فَالنَّارُ النَّارُ
254 سنن ابن ماجه افتتاح الكتاب في الإيمان وفضائل الصحابة والعلم باب الانتفاع بالعلم والعمل به
7370 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الجامع