Psalm 119:71

It is good for me to have been through trouble; so that I might come to the knowledge of your rules.

Psalm 119:67

Before I was in trouble I went out of the way; but now I keep your word.

Psalm 94:12-13

Happy is the man who is guided by you, O Jah, and to whom you give teaching out of your law;

Isaiah 27:9

So by this will the sin of Jacob be covered, and this is all the fruit of taking away his punishment; when all the stones of the altar are crushed together, so that the wood pillars and the sun-images will not be put up again.

1 Corinthians 11:32

But if punishment does come, it is sent by the Lord, so that we may be safe when the world is judged.

Hebrews 12:10-11

For they truly gave us punishment for a short time, as it seemed good to them; but he does it for our profit, so that we may become holy as he is.

Treasury of Scripture Knowledge

Summary

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

Bible References

Good

Psalm 119:67
Before I was in trouble I went out of the way; but now I keep your word.
Psalm 94:12
Happy is the man who is guided by you, O Jah, and to whom you give teaching out of your law;
Isaiah 27:9
So by this will the sin of Jacob be covered, and this is all the fruit of taking away his punishment; when all the stones of the altar are crushed together, so that the wood pillars and the sun-images will not be put up again.
1 Corinthians 11:32
But if punishment does come, it is sent by the Lord, so that we may be safe when the world is judged.
Hebrews 12:10
For they truly gave us punishment for a short time, as it seemed good to them; but he does it for our profit, so that we may become holy as he is.

Basic English, produced by Mr C. K. Ogden of the Orthological Institute - public domain