Is Wisdom Really the Answer? (James 1:5-8; LD 45)

When we face trials in this age the last word we think to describe them is, “joy.”  When we face those trials we generally pray for strength, healing, grace, or any of the above.  However, James tells us to ask for wisdom.  Why would we want wisdom to get through a trial?  I thought wisdom was the thing that you gained after a trial.