Allah sets forth a Parable: a city enjoying security and quiet, abundantly supplied with sustenance from every place: Yet was it ungrateful for the favours of Allah: so Allah made it taste of hunger and terror (in extremes) (closing in on it) like a garment (from every side), because of the (evil) which (its people) wrought. (112)
Tafsir
If a settlement of human beings is in a good condition and is well provided for, God raises one of His subjects from among them, who calls them to the Truth. Under these circumstances, either these people accept the truth and become deserving of more blessings from God, or they do not do so and then they are subjected to different types of affliction. These afflictions are not a punishment from God, but God’s warnings. Their purpose is to awaken the people so that their sensitivity becomes keener and they become willing to give a positive response to the call of the preacher of truth. If such warnings are not effective, then after the conclusion of the dayee’s work the second stage comes: the destruction of that community. This is so that after reaching the world of the Hereafter, they face eternal punishment for their rejection of God’s messenger.
Alternatively, you may use the smart search feature provided below