عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ: ((مَنْ يَتَعَلَّمَ الْعِلْمَ لِيُجَادِلَ بِهِ الْعُلَمَاءَ، أَوْ لِيُمَارِيَ بِهِ السُّفَهَاءَ، أَوْ لِيَصْرِفَ بِهِ وُجُوهَ النَّاسِ إِلَيْهِ، فَالنَّارُ لَهُ، فَالنَّارُ لَهُ))
It is narrated from Sayyiduna Abu Hurairah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: Whoever learns knowledge in order to dispute with the scholars by it, or to argue with the foolish by it, or to turn the faces of people towards himself by it, then the Fire is for him, the Fire is for him.