"Many are the troubles of the just man, but out of them all the Lord delivers him." Psalm 34:17
ALL? Is this true, that the Lord delivers the just man out of all his troubles? First of all, who is just? It means righteous in the eyes of God. Philippians 3:9 tells us we can have a righteousness that is not our own but comes through faith in Christ. If we believe in Christ, and try to follow Him to the best of our abilities, if we call on the Holy Spirit to help us, I think we can call ourselves just.
So it is reasonable that when we are in trouble or troubled, we can come before God and say, "Father, You said You will deliver the just man from ALL his troubles. I claim the promises You gave to those who believe in You and obey You." God keeps His promises, of that I am sure.