Perhaps the best thing is to say nothing, just be there.
Rabbi Ephraim Mirvis recounts some possible bloopers to avoid saying to a mourner, and suggests some phrases that could be comforting or at least not distressing at this sensitive moment.
Video Produced by United Synagogue see more videos on Ask the Rabbi and How To...