Surah Al-A'raaf

7:130

وَلَقَدْ أَخَذْنَآ ءَالَ فِرْعَوْنَ بِٱلسِّنِينَ وَنَقْصٍۢ مِّنَ ٱلثَّمَرَٰتِ لَعَلَّهُمْ يَذَّكَّرُونَ

Dan sesungguhnya Kami telah menimpakan Firaun dan kaumnya dengan musim kemarau dan kekurangan buah-buahan, supaya mereka insaf mengambil pelajaran.

Tafsir 7:130

And indeed I gave the people of Pharaoh a number of years of drought and famine, testing them with a shortage of fruits and crops, so that they might reflect and realise that this was a punishment from Allah because of their disbelief, and so they might repent to Him.