Quran 6:42 from Surah Al-An'aam on Divine Marvels.
وَلَقَدۡ أَرۡسَلۡنَآ إِلَىٰٓ أُمَمٖ مِّن قَبۡلِكَ فَأَخَذۡنَٰهُم بِٱلۡبَأۡسَآءِ وَٱلضَّرَّآءِ لَعَلَّهُمۡ يَتَضَرَّعُونَ
English translation: And certainly We sent (Messengers) to nations from before you then We seized them with adversity and hardship so that they may humble themselves
Transliteration: walaqad arsalna ila umamin min qablika fa-akhadhnahum bil-basai wal-darai la'allahum yatadarra'una