Oftentimes God’s chastenings instead of being retributive are corrective. They are sent to empty us of self-sufficiency and self-righteousness: they are given to discover to us hidden transgressions, and to teach us the plague of our own hearts. Or again, chastisements are sent to strengthen our faith, to raise us to higher levels of experience, to bring us into a condition of usefulness. Still again, Divine chastisement is sent as a preventative, to keep under pride, to save us from being unduly elated over success in God’s service.
A.W. Pink