We endowed Luqman with wisdom: ‘Be thankful to God: whoever gives thanks benefits his own soul, and as for those who are thankless––God is self-sufficient, worthy of all praise.’
we bestowed (in the past) Wisdom on Luqman: "Show (thy) gratitude to Allah." Any who is (so) grateful does so to the profit of his own soul: but if any is ungrateful, verily Allah is free of all wants, Worthy of all praise.