1 Peter 1:7

7 that the proof of your faith, which is more precious than gold that perishes even though it is tested by fire, may be found to result in praise, glory, and honor at the revelation of Jesus Christ-- 

Romans 5:3-5

3 Not only this, but we also rejoice in our sufferings, knowing that suffering works perseverance;  4 and perseverance, proven character; and proven character, hope:  5 and hope doesn't disappoint us, because God's love has been poured out into our hearts through the Holy Spirit who was given to us. 

James 1:12,2-4

2 Count it all joy, my brothers, when you fall into various temptations,  3 knowing that the testing of your faith produces endurance.  4 Let endurance have its perfect work, that you may be perfect and complete, lacking in nothing. 

12 Blessed is the man who endures temptation, for when he has been approved, he will receive the crown of life, which the Lord promised to those who love him.