1 Corinthians 11:32

But being judged, we are corrected by the Lord, that we might not be condemned with the world.

Hebrews 12:10-11

For they indeed for a few days as seemed proper to themselves corrected us; but he for our own advantage, that we might be partakers of his holiness.

Treasury of Scripture Knowledge

Summary

It is good for me that I have been afflicted; that I might learn thy statutes.

Bible References

Good

1 Corinthians 11:32
But being judged, we are corrected by the Lord, that we might not be condemned with the world.
Hebrews 12:10
For they indeed for a few days as seemed proper to themselves corrected us; but he for our own advantage, that we might be partakers of his holiness.