You've undoubtedly heard the phrase, "everything happens for a reason." It's not a very comforting word to anyone that is going through difficulties. I would offer something much more beneficial to anyone you know that is having trouble. Try saying, "I know it's tough but I want you to know that I am here for you and I will walk through all of this with you."
I do believe that God can take a mess and make something good out of it but I have never been good at predicting the time frame. I'm not as interested in the purpose as I am your presence. I like to know someone is walking alongside of me. Yes, I know the Lord is with me too. But having you there is such an added bonus! Let's do this together!