Allah gives you an example of a town which was enjoying security and peace, receiving its provisions in abundance from every quarter, but it became ungrateful to the favors of Allah. As a result, Allah made its residents taste the consequences of their doings, through inflicting upon them misfortunes of hunger and fear.
Meaning:-
Abundance: a very large quantity of something, affluence; wealth:
Inflict: impose something unwelcome on.