Hebrews 12:5-11

and you have forgotten the exhortation which reasoneth with you as with sons, My son regard not lightly the chastening of the Lord, nor faint when thou art proven of him:

Revelation 3:10

Because you have kept the word of my patience, and I will keep you from the hour of temptation, which is about to come upon the whole world, to try those dwelling upon 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 they indeed for a few days were accustomed to chastise us according to that which seemed right to them; but he made unto our profit, in order that we might partake his holiness.
Revelation 3:10
Because you have kept the word of my patience, and I will keep you from the hour of temptation, which is about to come upon the whole world, to try those dwelling upon the earth.