James 1:5 (ESV)

5 If any of you lacks wisdom, let him ask God, who gives generously to all without reproach, and it will be given him.

Wisdom is knowing what ends we ought to seek and the best means to accomplish those ends—what we ought to do and how we ought to do it. Particularly in the context of our trials, wisdom is that ability to know what we are to be seeking here. It is the ability to know how we are to improve this particular trial in our lives; what means we are to use unto that end; what we are to do; how we are to behave in this trial, in order to see the perfect work of God worked out in our growing Christian maturity.1

Joseph A. Pipa