“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.”
Sunan Ibn Majah Book 20, Hadith 6