This story is about Luqman Ibn Anqa Ibn Sadun, who was from among the people of Aylah, He was a pious man who exerted himself in worship and who was blessed with wisdom. Also, it is said that he was a judge during the lifetime of prophet Dawud (AS). And, Allah knows best.