[Machine] Luqman the wise used to say to his son, "Oh my son, do not seek knowledge in order to show off to the scholars, to challenge the foolish, or to impress people in gatherings. And do not abandon knowledge out of arrogance and desire for ignorance. Oh my son, choose your companions wisely. If you see a group of people remembering God, then sit with them, for if you are knowledgeable, your knowledge will benefit you, and if you are ignorant, they will teach you. Perhaps Allah will bless you with His mercy through them and grant you their righteousness. But if you see a group of people who do not remember God, then 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 ignorance. Perhaps Allah will expose them to punishment, and you will befall the same fate."
أَنَّ لُقْمَانَ الْحَكِيمَ كَانَ يَقُولُ لِابْنِهِ «يَا بُنَيَّ لَا تَعَلَّمِ الْعِلْمَ لِتُبَاهِيَ بِهِ الْعُلَمَاءَ أَوْ لِتُمَارِيَ بِهِ السُّفَهَاءَ أَوْ تُرَائِيَ بِهِ فِي الْمَجَالِسِ وَلَا تَتْرُكِ الْعِلْمَ زُهْدًا فِيهِ وَرَغْبَةً فِي الْجَهَالَةِ يَا بُنَيَّ اخْتَرِ الْمَجَالِسَ عَلَى عَيْنِكَ وَإِذَا رَأَيْتَ قَوْمًا يَذْكُرُونَ اللَّهَ فَاجْلِسْ مَعَهُمْ فَإِنَّكَ إِنْ تَكُنْ عَالِمًا يَنْفَعْكَ عِلْمُكَ وَإِنْ تَكُنْ جَاهِلًا يُعَلِّمُوكَ وَلَعَلَّ اللَّهَ أَنْ يَطَّلِعَ عَلَيْهِمْ بِرَحْمَتِهِ فَيُصِيبَكَ بِهَا مَعَهُمْ وَإِذَا رَأَيْتَ قَوْمًا لَا يَذْكُرُونَ اللَّهَ فَلَا تَجْلِسْ مَعَهُمْ فَإِنَّكَ إِنْ تَكُنْ عَالِمًا لَا يَنْفَعْكَ عِلْمُكَ وَإِنْ تَكُنْ جَاهِلًا زَادُوكَ غَيًّا وَلَعَلَّ اللَّهَ أَنْ يَطَّلِعَ عَلَيْهِمْ بِعَذَابٍ فَيُصِيبَكَ مَعَهُمْ»