حَدَّثَنَا الْعَبَّاسُ بْنُ الْفَضْلِ الْأَسْفَاطِيُّ، ثنا خَالِدُ بْنُ يَزْيَدٍ الْعُمَرِيُّ، ثنا إِسْحَاقُ بْنُ يَحْيَى بْنِ طَلْحَةَ، عَنِ ابْنِ كَعْبِ بْنِ مَالِكٍ، عَنْ أَبِيهِ، قَالَ: قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ: " مَنْ طَلَبَ الْعِلْمَ لِإِحْدَى ثَلَاثٍ: يُمَارِي بِهِ السُّفَهَاءَ، أَوْ يُبَاهِي بِهِ الْعُلَمَاءَ، أَوْ يَسْتَجِيرُ وُجُوهَ النَّاسِ إِلَيْهِ "، فَقَالَ فِيهِ كَلَامًا شَدِيدًا
It is narrated from Sayyiduna Ka'b bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever seeks knowledge for one of these three things: to argue with the foolish, or to boast before the scholars, or to draw people's attention towards himself" - and about this he (peace and blessings be upon him) spoke words of severe warning.