"The LORD is near to the brokenhearted and saves the crused in spirit." - Proverbs 15:13
When we are crushed in spirit and feel at our worst, words rarely help. Trite phrases like everything happens for a reason just don't resolve any of the pain we feel so deeply. Mostly, we just need to know we aren't alone. God understands that. He promises to draw near in those times.
If you're there, be sensitive for his presence. If you're not, be sensitive to those around you.