When the road ahead gets difficult our own fears and ideas gain strength. Things like, "I must have done something bad to deserve this." Or, "God doesn't care about me," add to our stress and deepen the darkness.
Rather, what we need is a firm grasp on God's will. For example, James says, "... you know that the testing of your faith develops perseverance. Perseverance must finish its work so that you may be mature and complete, not lacking anything (1:4)."
Also, to be humble is to be blessed, and perseverance though trial will be rewarded (James.1:9-12.)
In other words, in trials, more than anything else, we need God's precious wisdom to govern our thoughts, attitudes and actions.Yet it is the very thing that alludes us.
Fortunately God is ready to give, if we are ready to receive.
"If any of you lacks wisdom, he should ask God, who gives generously to all without finding fault, and it will be given to him. But when he asks, he must believe and not doubt, James 1:5-6
In trial pray for insight and the ability to accept God's work in your life. Pray with confident trust and readiness to keep walking in faith and doing what he wants you to do.
Keep praying till his word governs your thoughts and enables you to rejoice in what he is doing even though you may experience grief in trial for a short time.