The next verses speak of the events that led Pharaoh and his people to a number of calamities sent to them as punishment and finally led them to their death. The first heavenly punishment came to them in the form of famine. According to historical reports this famine lasted for seven years.
"And We seized the people of the Pharaoh with years of famine and loss of fruits, so that they may take lesson. So when something good came to them they said, 'This is our right.' And if they suffered from something evil, they ascribed it as an ill omen to Musa and those with him. Listen, their omen lies with Allah only, but most of them do not know."
The first verse has described the famine with two phrases: 'years of famine' and 'loss of fruits.' The respected Companion ` Abdullah ibn ` Abbas ؓ and the commentator Qatadah have said that the punishment of drought was for the people of the rural areas, while people living in cities and towns were punished by the loss of fruits.
Allah said,
(And indeed We punished the people of Fir`awn) We tested and tried them,
(with years of drought) of famine due to little produce,
(and lack of fruits), which is less severe, according to Mujahid. Abu Ishaq narrated that Raja' bin Haywah said, "The date tree used to produce only one date!"
(That they might remember (take heed). But whenever good came to them) such as a fertile season and provisions,
(they said, "This is for us."), because we deserve it,
(and if evil afflicted them) drought and famine,
(they considered it an omen Musa and those with him. ) saying that this hardship is because of them and what they have done.
(Verily, their omens are with Allah) `Ali bin Abi Talhah reported that Ibn `Abbas commented on the Ayah,
(Verily, their omens are with Allah) "Allah says that their afflictions are with and from Him,
(but most of them know not.)"