We afflicted Fir’on’s people with several years of famine and shortages of fruit so that they might come to their senses.
Meaning:-
Afflict: (of a problem or illness) cause pain or suffering to; affect or trouble.
Famine: extreme shortage of food