Sura Al-A'raaf

7:94

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

VI HAR aldrig sänt en profet till ett land utan att sätta dess folk på prov genom olyckor och elände, för att få dem att ödmjuka sig [och ångra sina synder].

Tafsir 7:94

God did not send a prophet to any city, the people of which denied and rejected the truth, except that He tried them with suffering and poverty and illness so that they might humble themselves before God, and leave their pride and disbelief. This was a warning for Quraysh and for all peoples who disbelieve and reject the way of God.