Faith is not about everything turning out ok. Faith is about being ok no matter how things turn out.
Take comfort knowing that God has a plan for you - His perfect plan for you. He promises to give you a future of hope. Put your faith in Him.
For I know well the plans I have in mind for you—oracle of the LORD—plans for your welfare and not for woe, so as to give you a future of hope.