7:94 · Al-A'raaf
وَمَا أَرْسَلْنَا فِي قَرْيَةٍ مِنْ نَبِيٍّ إِلَّا أَخَذْنَا أَهْلَهَا بِالْبَأْسَاءِ وَالضَّرَّاءِ لَعَلَّهُمْ يَضَّرَّعُونَ
Whenever We sent a prophet to a town, We took up its people in suffering and adversity, in order that they might learn humility.