Sunan al-Darimi 389
أَخْبَرَنَا الْحَكَمُ بْنُ نَافِعٍ، أَخْبَرَنَا شُعَيْبُ بْنُ أَبِي حَمْزَةَ، عَنِ ابْنِ أَبِي حُسَيْنٍ، عَنْ شَهْرِ بْنِ حَوْشَبٍ، قَالَ: بَلَغَنِي أَنَّ لُقْمَانَ الْحَكِيمَ كَانَ يَقُولُ لِابْنِهِ: «يَا بُنَيَّ، لَا تَعَلَّمِ الْعِلْمَ لِتُبَاهِيَ بِهِ الْعُلَمَاءَ، أَوْ لِتُمَارِيَ بِهِ السُّفَهَاءَ، أَوْ تُرَائِيَ بِهِ فِي الْمَجَالِسِ، وَلَا تَتْرُكِ الْعِلْمَ زُهْدًا فِيهِ، وَرَغْبَةً فِي الْجَهَالَةِ. يَا بُنَيَّ اخْتَرِ الْمَجَالِسَ عَلَى عَيْنِكَ، وَإِذَا رَأَيْتَ قَوْمًا يَذْكُرُونَ اللَّهَ، فَاجْلِسْ مَعَهُمْ، فَإِنَّكَ إِنْ تَكُنْ عَالِمًا، يَنْفَعْكَ عِلْمُكَ، وَإِنْ تَكُنْ جَاهِلًا، يُعَلِّمُوكَ، وَلَعَلَّ اللَّهَ أَنْ يَطَّلِعَ عَلَيْهِمْ بِرَحْمَتِهِ، فَيُصِيبَكَ بِهَا مَعَهُمْ، وَإِذَا رَأَيْتَ قَوْمًا، لَا يَذْكُرُونَ اللَّهَ، فَلَا تَجْلِسْ مَعَهُمْ، فَإِنَّكَ إِنْ تَكُنْ عَالِمًا، لَا يَنْفَعْكَ عِلْمُكَ، وَإِنْ تَكُنْ جَاهِلًا، زَادُوكَ غَيًّا، وَلَعَلَّ اللَّهَ أَنْ يَطَّلِعَ عَلَيْهِمْ بِعَذَابٍ فَيُصِيبَكَ مَعَهُمْ»
Al-Hakam ibn Nafiʿ informed us; he said: Shuʿayb ibn Abi Hamzah informed us, from Ibn Abi Husayn, from Shahr ibn Hawshab, who said: It has reached me that Luqman the Wise used to say to his son: "O my son, do not learn knowledge to boast with it before the scholars, or 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. O my son, choose your gatherings with care. When you see people remembering Allah, sit with them, for 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, for if you are knowledgeable, your knowledge will not benefit you, and if you are ignorant, they will increase you in error; and perhaps Allah will look upon them with punishment and it will strike you along with them."