I understand that people want to comfort the afflicted. I understand that people want to make it better. "I love you" is a good way to do that. "You are welcome in my home and to my family," is another good one. "If you need money, please don't hesitate to ask" is pretty useful too.
"Everything happens for a reason?" Not so much. — Jon Carroll