Allah gave Luqman wisdom — that he might be grateful to Allah. The Quran preserves a precious moment of his: the advice he gave his son.
وَإِذۡ قَالَ لُقۡمَٰنُ لِٱبۡنِهِۦ وَهُوَ يَعِظُهُۥ يَٰبُنَيَّ لَا تُشۡرِكۡ بِٱللَّهِۖ إِنَّ ٱلشِّرۡكَ لَظُلۡمٌ عَظِيمٞ
“And [mention, O Muḥammad], when Luqmān said to his son while he was instructing him, "O my son, do not associate [anything] with Allāh. Indeed, association [with Him] is great injustice."”
Surah Luqman 31:13
Translation: Saheeh International (QuranEnc)
Within it Allah Himself reminds us of the rights of parents — especially the mother, who carries her child through weakness upon weakness. If parents press one to associate partners with Allah, one must not obey, yet one should still keep good company with them in this world.
Luqman said: my son, even if a deed were the weight of a mustard seed, hidden in a rock or in the heavens or in the earth, Allah will bring it forth. Allah is Subtle, All-Aware.
My son, establish prayer, enjoin what is right, forbid what is wrong, and be patient with whatever befalls you — these are matters of firm resolve.
وَلَا تُصَعِّرۡ خَدَّكَ لِلنَّاسِ وَلَا تَمۡشِ فِي ٱلۡأَرۡضِ مَرَحًاۖ إِنَّ ٱللَّهَ لَا يُحِبُّ كُلَّ مُخۡتَالٖ فَخُورٖ وَٱقۡصِدۡ فِي مَشۡيِكَ وَٱغۡضُضۡ مِن صَوۡتِكَۚ إِنَّ أَنكَرَ ٱلۡأَصۡوَٰتِ لَصَوۡتُ ٱلۡحَمِيرِ
“And do not turn your cheek [in contempt] toward people and do not walk through the earth exultantly. Indeed, Allāh does not like everyone self-deluded and boastful. And be moderate in your pace and lower your voice; indeed, the most disagreeable of sounds is the voice of donkeys."”
Surah Luqman 31:18–19
Translation: Saheeh International (QuranEnc)