The Cow - 2:155
We will test you with fear, hunger, loss of money, lives, and crops. Give good news to those who are patient.
Example of a test with crop loss:
The Cattle/6:42
And We sent messengers to the people before you, and We tested them with hardship and distress so that they might supplicate.
وَلَقَدْ اَرْسَلْـنَٓا اِلٰٓى اُمَمٍ مِنْ قَبْلِكَ فَاَخَذْنَاهُمْ بِالْبَأْسَٓاءِ وَالضَّرَّٓاءِ لَعَلَّهُمْ يَتَضَرَّعُونَ
The Cattle/6:43
If only they had supplicated when We afflicted them! But their hearts hardened, and Satan made their deeds appear to them as adornment.
فَلَوْلَٓا اِذْ جَٓاءَهُمْ بَأْسُنَا تَضَرَّعُوا وَلٰكِنْ قَسَتْ قُلُوبُهُمْ وَزَيَّنَ لَهُمُ الشَّيْطَانُ مَا كَانُوا يَعْمَلُونَ
The Heights/7:94
Whenever We sent a messenger to a land, We afflicted its people with hardship and distress so that they might beg.
وَمَٓا اَرْسَلْنَا ف۪ي قَرْيَةٍ مِنْ نَبِيٍّ اِلَّٓا اَخَذْنَٓا اَهْلَهَا بِالْبَأْسَٓاءِ وَالضَّرَّٓاءِ لَعَلَّهُمْ يَضَّرَّعُونَ
The Heights/7:130
And We sentenced the party of Pharaoh to years of drought and famine so that they might be admonished.
وَلَقَدْ اَخَذْنَٓا اٰلَ فِرْعَوْنَ بِالسِّن۪ينَ وَنَقْصٍ مِنَ الثَّمَرَاتِ لَعَلَّهُمْ يَذَّكَّرُونَ