حَدَّثَنَا أَبُو الْجَهْمِ عَمْرُو بْنُ حَازِمٍ، ثنا سُلَيْمَانُ بْنُ عَبْدِ الْخَالِقِ بْنِ زَيْدٍ، عَنْ أَبِيهِ، عَنْ مُحَمَّدِ بْنِ عَبْدِ الْمَلِكِ بْنِ مَرْوَانَ، عَنْ أَبِيهِ، عَنْ أُمِّ سَلَمَةَ، عَنِ النَّبِيِّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ، قَالَ: «مَنْ تَعَلَّمَ الْعِلْمَ لِيُبَاهِيَ بِهِ الْعُلَمَاءَ، وَيُمَارِيَ بِهِ السُّفَهَاءَ فَهُوَ فِي النَّارِ»
It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) said: "Whoever learns knowledge in order to boast with it before the scholars or to argue with the foolish by it, he is in Hell."