Romans 8:28

But we know that to those who love God all things work together for good, even to those who are called according to his purpose.

2 Corinthians 4:17

For our momentary light affliction worketh for us a transcendently far more exceeding eternal weight of glory;

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.

James 1:12

Blessed is the man who patiently supports temptation: for when he is proved, he shall receive the crown of life, which the Lord hath promised to those who love him.

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:

Treasury of Scripture Knowledge

Summary

Who fed thee in the wilderness with manna, which thy fathers knew not, that he might humble thee, and that he might prove thee, to do thee good at thy latter end;

Bible References

To do thee

Romans 8:28
But we know that to those who love God all things work together for good, even to those who are called according to his purpose.
2 Corinthians 4:17
For our momentary light affliction worketh for us a transcendently far more exceeding eternal weight of glory;
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.
James 1:12
Blessed is the man who patiently supports temptation: for when he is proved, he shall receive the crown of life, which the Lord hath promised to those who love him.
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: