Hebrews 12:5-11

And have you forgotten the exhortation that was addressed to you as sons? [Prov. 3:11f says], "My son, do not take the discipline of the Lord lightly, and do not get discouraged when He rebukes you.

Revelation 3:10

Because you have obeyed my command to remain steadfast [in the face of difficult times], I will also keep you from [giving up when] the time of trial comes, which is about to come upon the whole world, to test those living on the earth.

Treasury of Scripture Knowledge

Summary

Before I was afflicted I went astray: but now have I kept thy word.

Bible References

But now

Hebrews 12:10
For our human fathers disciplined us for a short time as it seemed best to them; but God disciplines us for our [spiritual] good, so that we may share in His holiness.
Revelation 3:10
Because you have obeyed my command to remain steadfast [in the face of difficult times], I will also keep you from [giving up when] the time of trial comes, which is about to come upon the whole world, to test those living on the earth.