Mustadrak al-Hakim 292
Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Muḥammad b. ʿAbdullāh b. ʿAbd al-Ḥakam > Ibn Wahb > Ibn Jurayj
The Prophet said: "Do not seek knowledge in order to show off in front of the scholars, or to argue with the foolish, and do not choose the best seat in a gathering, due to it (i.e. the knowledge which you have learned) for whoever does that, the Fire, the Fire (awaits him)."
حَدَّثَنَا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أَنْبَأَ مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ عَبْدِ الْحَكَمِ أَنْبَأَنَا ابْنُ وَهْبٍ قَالَ وَسَمِعْتُ ابْنَ جُرَيْجٍ يُحَدِّثُ
أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ «لَا تَعَلَّمُوا الْعِلْمَ لِتُبَاهُوا بِهِ الْعُلَمَاءَ وَلَا لِتُمَارُوا بِهِ السُّفَهَاءَ وَلَا لِتُحَدِّثُوا بِهِ فِي الْمَجَالِسِ فَمَنْ فَعَلَ ذَلِكَ فَالنَّارُ النَّارُ»