One who rejoices in his sufferings brings salvation.
Sefer HaMidos, Salvation and Miracles, Part I §2