Psalm 119:71
It is good for me that I have been afflicted, that I may learn your statutes.
Psalm 119:67
Before I was afflicted, I went astray; but now I observe your word.
Psalm 94:12-13
Blessed is the man whom you discipline, Yah, and teach out of your law;
Isaiah 27:9
Therefore, by this the iniquity of Jacob will be forgiven, and this is all the fruit of taking away his sin: that he makes all the stones of the altar as chalk stones that are beaten in pieces, so that the Asherim and the incense altars shall rise no more.
1 Corinthians 11:32
But when we are judged, we are punished by the Lord, that we may not be condemned with the world.
Hebrews 12:10-11
For they indeed, for a few days, punished us as seemed good to them; but he for our profit, that we may be partakers of his holiness.