Al-A'raf - 7:130

وَلَقَدْ أَخَذْنَا آلَ فِرْعَونَ بِالسِّنِينَ وَنَقْصٍ مِّن الثَّمَرَاتِ لَعَلَّهُمْ يَذَّكَّرُونَ
[7:130]
And certainly We overtook Firon's people with droughts and diminution of fruits that they may be mindful.
We punished the people of Pharaoh with years (of droughts) and shortness of crops; that they might receive admonition.
And we straitened Pharaoh's folk with famine and dearth of fruits, that peradventure they might heed.