Some ayah and hadith pertaining to Luqman, a righteous man whom Allah blessed with wisdom:
Luqman's advice to his son, from the Qur'aan: Surah Luqman
12. And indeed We bestowed upon Luqman Al-Hikmah saying: "Give thanks to Allah.'' And whoever gives thanks, he gives thanks for (the good of) himself. And whoever is unthankful, then verily, Allah is All-Rich, Worthy of all praise.
13. And when Luqman said to his son when he was advising him: "O my son! Join not in worship others with Allah. Verily, joining others in worship with Allah is a great Zulm (wrong) indeed.''
14. And We have enjoined on man (to be dutiful and good) to his parents. His mother bore him in weakness and hardship upon weakness and hardship, and his weaning is in two years -- give thanks to Me and to your parents. Unto Me is the final destination.
15. But if they strive with you to make you join in worship with Me others that of which you have no knowledge, then obey them not; but behave with them in the world kindly, and follow the path of him who turns to Me in repentance and in obedience. Then to Me will be your return, and I shall tell you what you used to do.
16. "O my son! If it be (anything) equal to the weight of a grain of mustard seed, and though it be in a rock, or in the heavens or on the earth, Allah will bring it forth. Verily, Allah is Subtle, Well-Aware.''
17. "O my son! Perform the Salah, enjoin the good, and forbid the evil, and bear with patience whatever befalls you. Verily, these are some of the important commandments.''
18. "And turn not your face away from men with pride, nor walk in insolence through the earth. Verily, Allah likes not any arrogant boaster.''
19. "And be moderate in your walking, and lower your voice. Verily, the harshest of all voices is the braying of the asses.''
Other reports:
Ibn Jarir recorded that Khalid Ar-Raba`i said: "Luqman was an Ethiopian slave who was a carpenter. His master said to him, `Slaughter this sheep for us,' so he slaughtered it. [His master] said: `Bring the best two pieces from it,' so he brought out the tongue and the heart. Then time passed, as much as Allah willed, and [his master] said: `Slaughter this sheep for us,' so he slaughtered it. [His master] said, `Bring the worst two morsels from it,' so he brought out the tongue and the heart. His master said to him, `I told you to bring out the best two pieces, and you brought these, then I told you to bring out the worst two pieces, and you brought these!' Luqman said, `There is nothing better than these if they are good, and there is nothing worse than these if they are bad.'''
Many other proverbs and words of advice were also narrated from him, some examples of which we will quote below, as basic principles: Imam Ahmad recorded that Ibn `Umar said, "The Messenger of Allah said:
Luqman the Wise used to say: when something is entrusted to the care of Allah, He protects it.
It was narrated that As-Sari bin Yahya said: "Luqman said to his son: `Wisdom puts the poor in the company of kings.'''
It was also narrated that `Awn bin `Abdullah said: "Luqman said to his son: `O my son! When you come to a gathering of people, greet them with Salam, then sit at the edge of the group, and do not speak until you see that they have finished speaking. Then if they remember Allah, join them, but if they speak of anything else, then leave them and go to another group'.''
Source:
Tafsir ibn Kathir