The Chapters on Legal Punishments 20:2634
It was narrated from Ibn `Umar that the Messenger of Allah (ﷺ) said:
“Carrying out one of the legal punishments prescribed by Allah (SWT) is better than if it were to rain for forty nights in the land of Allah (SWT), Glorified is He.”