If you want to have wisdom to know what to do when difficulties come, ask God to help you, and firmly trust him.
5 If anyone of you does not know how to act wisely in order to endure difficulties/trials well, he should ask God to show him what he should do, because God wholeheartedly/gladly helps all people who ask and does not scold anyone for asking. Those who ask, God will give them wisdom to know what they should do.