Have you ever been at a place in life to where you didn't understand where you were or why you were where you were? After some time, you're finally able to see that IF this wouldn't have happened, then you would have never experienced this? Everything happens for a reason.
If God allowed "it"... there's purppse. Keep in mind, there's something God wants to do in you and through you. Shift your thinking. IF God brought you to it, then He'll see you through it.