How wonderful that we as Christians can ask God for wisdom during the trials we face, and if we ask without doubting who He is, He supplies it!
So how does this wisdom come to us? Kent Hughes in his commentary on James helps us out greatly!
Reverence. This is a respectful fear of God. “The fear of the Lord is the beginning of wisdom” (Proverbs 1:7). Understanding the attributes of God (holiness, awesomeness, love, and sovereignty) and embracing these aspects of him, we begin to know true wisdom. Then, in turn, we begin to understand our fallenness (Genesis 3:1-8), which in turn develops a greater humility.
Conversion. “The natural person does not accept the things of the Spirit of God, for they are folly to him, and he is not able to understand them because they are spiritually discerned” (1 Corinthians 2:14). By conversion, we are no longer “in Adam” but “in Christ” (Romans 5:12-21). In Christ are hidden all the treasures of wisdom and knowledge (Colossians 2:3). In Christ is the wisdom of God (1 Corinthians 1:30).
Scripture. “Let the word of God dwell in you richly with all wisdom” (Colossians 3:16). Thomas Chalmers once said, “The sum and substance of the preparation needed for a coming eternity is that you believe what the Bible tells you and do what the Bible bids you.” God has put in the black and white pages of Scripture His work, His nature, and His aim for the world. No insight is worth having outside of Scripture.
Prayer. James 1:5 says, “If any of you lacks wisdom, let him ask God, who give generously to all without reproach, and it will be given him.” If we have belief in the nature and promises of God, He will give it!