1 I waited patiently for the Lord; and he inclined unto me, and heard my cry. 2 He brought me up also out of an horrible pit, out of the miry clay, and set my feet upon a rock, and established my goings. 3 And he hath put a new song in my mouth, even praise unto our God: many shall see it, and fear, and shall trust in the Lord. Psalm 40: 1-3
1 - No matter what it is you are facing, wait patiently on God. He is omniscient - He knows what you are going through, what you need and He knows the perfect time to give it to you so that you come out victorious and better than before.
2 - God is more powerful than anything you will ever face. Think of the most horrible thing you can go through - He is bigger than that and has the power to make you victorious over it. He will stabilize you again and establish a way for you to continue living peacefully.
3 - The trial you are facing will give you a praise that you never had. It will strengthen you in a way that you've never been strengthened. It will cause you to seek God in a way that you've never sought Him. When God brings you out victorious, your praise to Him will be a bright light visible to everyone. Your endurance will cause others to endure. Your victory will cause others to trust in and praise God along with you. Your testimony is powerful beyond your understanding.
Many, O Lord my God, are thy wonderful works which thou hast done, and thy thoughts which are to us-ward: they cannot be reckoned up in order unto thee: if I would declare and speak of them, they are more than can be numbered. Psalm 40:5