We need God's wisdom to count it all joy to face our troubles. He will give us this wisdom if we seek him in our pain.