31:12

وَلَقَدْ آتَيْنَا لُقْمَانَ الْحِكْمَةَ أَنِ اشْكُرْ لِلَّهِ وَمَن يَشْكُرْ فَإِنَّمَا يَشْكُرُ لِنَفْسِهِ وَمَن كَفَرَ فَإِنَّ اللَّهَ غَنِيٌّ حَمِيدٌ

Transliteration:

Walaqad atayna luqmana alhikmata ani oshkur lillahi waman yashkur fa-innama yashkuru linafsihi waman kafara fa-inna Allaha ghaniyyun hameedun

Word by Word:

And verily, We gave Luqman the wisdom that, "Be grateful to Allah." And whoever (is) grateful then only he is grateful for himself. And whoever (is) ungrateful, then indeed, Allah (is) Free of need, Praiseworthy.

Translations:

and, indeed, we granted this wisdom unto Luqman: Be grateful unto God - for he who is grateful [unto Him] is but grateful for the good of his own self; whereas he who chooses to be ungrateful [ought to know that], verily, God is self-sufficient, ever to be praised!"

we bestowed (in the past) Wisdom on Luqman: "Show (thy) gratitude to God." Any who is (so) grateful does so to the profit of his own soul: but if any is ungrateful, verily God is free of all wants, Worthy of all praise.

And verily We gave Luqman wisdom, saying: Give thanks unto Allah; and whosoever giveth thanks, he giveth thanks for (the good of) his soul. And whosoever refuseth - Lo! Allah is Absolute, Owner of Praise.

And certainly We gave Luqman wisdom, saying: Give thanks to Allah. And whoever is thankful, is thankful for his own soul; and whoever denies, then surely Allah is Self-Sufficient, Praised.

And We had certainly given Luqman wisdom [and said], "Be grateful to Allah ." And whoever is grateful is grateful for [the benefit of] himself. And whoever denies [His favor] - then indeed, Allah is Free of need and Praiseworthy.