Overall meaning :
The Almighty says: When We decree to destroy the people of a community because of their unbelief and wrongdoing, We command the affluent among them, through the messenger sent to them, to obey Me and worship Me alone. If they disobey their Lord’s command and disbelieve His messenger, they then become deserving of Our punishment, and so We destroy them completely. Many communities have We destroyed after Noah when they denied the messengers sent to them, and suffice it that your Lord, Muhammad, is well aware of what people do and that He will repay them according to their deeds.
Allah then makes mention of the fate of those who prefer the life of the world to the hereafter: To those who consider this worldly life their prime concern and strive solely for it without striving for the hereafter, Allah will readily grant whatever worldly pleasures He pleases to whomever of them He wills; and in the hereafter, He will have Hell for them, which they will enter, covered with disgrace and excluded from His grace and mercy. As for those who intend with their words and deeds the reward in the hereafter, strive hard to attain Paradise just as Allah loves and approves, and are true believers, their good deeds will certainly be accepted. Allah will richly recompense their endeavours and multiply the reward for their good deeds.
Next, He states that His bounty is open to all: On both these groups do We bestow Our bounty and sustenance. We provide both the believers and the unbelievers in this life, for the bounty of your Lord, Muhammad, is not denied to anyone, and everyone has his allotted share. See, Muhammad, how We have exalted some people above others in this life. Yet the life to come has higher ranks of honours and greater favours.