God presents the example of a town that was secure and at ease, with provisions coming to it abundantly from all places. Then it became ungrateful for God’s blessings, so God afflicted it with the garment of famine and fear, for what its people had done.
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.