Luqman was a righteous and pious man who devoted himself in worship, he was blessed with wisdom.
Most opinions said he was a devoted and a pious servant of Allah and not a Prophet.
And (remember) 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 wrong indeed. 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. But if they (both) 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. “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 in the earth, Allah will bring it forth. Verily, Allah is Subtle (in bringing out that grain), Well-Aware (of its place). “O my son! perform As-Salat, enjoin (people) for Al-Ma’ruf (Islamic Monotheism and all that is good), and forbid (people) from Al-Munkar (disbelief in the Oneness of Allah, polytheism of all kinds and all that is evil and bad), and bear with patience whatever befall you. Verily! These are some of the important commandments ordered by Allah with no exemption. “And turn not your face away from men with pride, nor walk in insolence through the earth. Verily, Allah likes not each arrogant boaster. “And be moderate (or show no insolence) in your walking, and lower your voice. Verily, the harshest of all voices is the voice (braying) of the ass.”” [Luqman (31): 12-19]