James 1:2-6

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.  5 But if any of you lacks wisdom, let him ask of God, who gives to all liberally and without reproach; and it will be given to him.  6 But let him ask in faith, without any doubting, for he who doubts is like a wave of the sea, driven by the wind and tossed.