We gave wisdom to Luqman so that he may be grateful to Allah. The one who pay thanks, does so for his own good; and the one who denies His favors, should know that Allah is certainly free of all wants, worthy of all praise.