1 Peter 1:7

that the test of your faith (much more precious than that of gold, which is of a perishing nature, though proved by fire) may be found unto praise and honour and glory at the revelation of Jesus Christ:

Hebrews 12:10-11

For they indeed for a few days as seemed proper to themselves corrected us; but he for our own advantage, that we might be partakers of his holiness.

1 Peter 4:12

Beloved, be not amazed at the fiery trial among you which is to bring you to the test, as though something strange happened to you;

Revelation 3:19

As many as I love, I rebuke and correct: be zealous then, and repent.

Treasury of Scripture Knowledge

Summary

Behold, I have refined thee, but not with silver; I have chosen thee in the furnace of affliction.

Bible References

I have refined

Hebrews 12:10
For they indeed for a few days as seemed proper to themselves corrected us; but he for our own advantage, that we might be partakers of his holiness.
1 Peter 1:7
that the test of your faith (much more precious than that of gold, which is of a perishing nature, though proved by fire) may be found unto praise and honour and glory at the revelation of Jesus Christ:
1 Peter 4:12
Beloved, be not amazed at the fiery trial among you which is to bring you to the test, as though something strange happened to you;
Revelation 3:19
As many as I love, I rebuke and correct: be zealous then, and repent.