1 Corinthians 11:32

but when judged, we are chastened by the Lord, that we may not be condemned with the world.

Hebrews 12:10-11

For they indeed corrected us for a while, as seemed good to them; but He for our profit, that we may 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 when judged, we are chastened by the Lord, that we may not be condemned with the world.
Hebrews 12:10
For they indeed corrected us for a while, as seemed good to them; but He for our profit, that we may be partakers of his holiness.