I feel that compassion is saying, "I'm so sorry for your loss. Even though I cannot identify with your loss, I'm always here as your friend to listen/pray with you", if you can not identify with that loss.

If you have, saying "I'm so sorry. I know how you feel. When you are ready to talk about it, I'm here to listen/pray with you".