James 1: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.