There is no one-size-fits-all answer to this question, as the best thing to say will vary depending on the relationship you have with the person who has lost a loved one. However, some possible ways to express heartfelt sympathy include "my thoughts are with you," "you are in my prayers," or "I am here for you if you need anything."