Sura Al-An'aam

6:42

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

Före dig har Vi sänt sändebud till folk, som Vi sedan satte på prov genom motgångar och lidande, för att de skulle [lära sig] ödmjukhet.

Tafsir 6:42

I sent messengers to many communities before you, O Messenger, but those communities denied their messengers and turned away from what they brought. I then tried them with poverty and sickness in order for them to submit and humble themselves before their Lord.