Sunan al-Darimi 379
أَخْبَرَنَا أَبُو عُبَيْدٍ الْقَاسِمُ بْنُ سَلَّامٍ، حَدَّثَنَا أَبُو إِسْمَاعِيلَ هُوَ إِبْرَاهِيمُ بْنُ سُلَيْمَانَ الْمُؤَدِّبُ، عَنْ عَاصِمٍ الْأَحْوَلِ، عَنْ مَنْ حَدَّثَهُ، عَنْ أَبِي وَائِلٍ، عَنْ عَبْدِ اللَّهِ قَالَ: " مَنْ طَلَبَ الْعِلْمَ لِأَرْبَعٍ، دَخَلَ النَّارَ - أَوْ نَحْوَ هَذِهِ الْكَلِمَةِ -: لِيُبَاهِيَ بِهِ الْعُلَمَاءَ. أَوْ لِيُمَارِيَ بِهِ السُّفَهَاءَ، أَوْ لِيَصْرِفَ بِهِ وُجُوهَ النَّاسِ إِلَيْهِ، أَوْ لِيَأْخُذَ بِهِ مِنَ الْأُمَرَاءِ "
Abu ʿUbayd al-Qasim ibn Sallam informed us; he said: Abu Ismaʿil, he is Ibrahim ibn Sulayman al-Muʾaddib, narrated to us, from ʿAsim al-Ahwal, from someone who narrated to him, from Abu Waʾil, from ʿAbdullah, who said: "Whoever seeks knowledge for four [reasons] will enter the Fire" — or words to this effect: "to boast with it before the scholars, or to dispute with the foolish by it, or to turn people's faces towards himself by it, or to take [wealth] from the rulers by it."