It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ) said:
"A legal punishment that is carried out in the land is better for the people of that land than if it were to rain for forty days."
English reference: Vol. 3, Book 20, Hadith 2538
Arabic reference: Book 20, Hadith 2635
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.