Sunan al-Darimi 393
أَخْبَرَنَا مُحَمَّدُ بْنُ أَحْمَدَ، حَدَّثَنَا سُفْيَانُ، عَنْ دَاوُدَ بْنِ شَابُورَ، سَمِعَ شَهْرَ بْنَ حَوْشَبٍ، يَقُولُ: قَالَ لُقْمَانُ لِابْنِهِ: «يَا بُنَيَّ لَا تَعَلَّمِ الْعِلْمَ لِتُبَاهِيَ بِهِ الْعُلَمَاءَ، وتُمَارِيَ بِهِ السُّفَهَاءَ، وَتُرَائِيَ بِهِ فِي الْمَجَالِسِ، وَلَا تَتْرُكِ الْعِلْمَ زَهَادَةً فِيهِ، وَرَغْبَةً فِي الْجَهَالَةِ، وَإِذَا رَأَيْتَ قَوْمًا لا يَذْكُرُونَ اللَّهَ، فَاجْلِسْ مَعَهُمْ، إِنْ تَكُ عَالِمًا، يَنْفَعْكَ عِلْمُكَ، وَإِنْ تَكُ جَاهِلًا، عَلَّمُوكَ، وَلَعَلَّ اللَّهَ أَنْ يَطَّلِعَ عَلَيْهِمْ بِرَحْمَتِهِ، فَيُصِيبَكَ بِهَا مَعَهُمْ، وَإِذَا رَأَيْتَ قَوْمًا لَا يَذْكُرُونَ اللَّهَ فَلَا تَجْلِسْ مَعَهُمْ، إِنْ تَكُ عَالِمًا لَمْ يَنْفَعْكَ عِلْمُكَ، وَإِنْ تَكُ جَاهِلًا، زَادُوكَ غَيًّا - أَوْ عِيًّا - وَلَعَلَّ اللَّهَ أَنْ يَطَّلِعَ عَلَيْهِمْ بِسَخَطٍ فَيُصِيبَكَ بِهِ مَعَهُمْ»
Muhammad ibn Ahmad informed us; he said: Sufyan narrated to us, from Dawud ibn Shabur, that he heard Shahr ibn Hawshab say: Luqman said to his son: "O my son, do not learn knowledge to boast with it before the scholars, to dispute with the foolish by it, or to show off with it in gatherings; and do not abandon knowledge out of indifference to it and desire for ignorance. When you see people who do not remember Allah, sit with them: if you are knowledgeable, your knowledge will benefit you, and if you are ignorant, they will teach you; and perhaps Allah will look upon them with His mercy and it will reach you along with them. And when you see people who do not remember Allah, do not sit with them: if you are knowledgeable, your knowledge will not benefit you, and if you are ignorant, they will increase you in error" — or "in incapacity" — "and perhaps Allah will look upon them with displeasure and it will strike you along with them."