I’m sorry to learn/hear that…
It is really a pity that you failed in…
Please don’t feel too much distressed(痛苦，紧张) for this frustration.
All of us are waiting for your rapid recovery/return to health(恢复健康).
Please let me know of any assistance I can render you.
Dear Mr. John,
I am exceedingly(非常) sorry to hear that your father passed away.The painful news reached us this morning, and we were so shocked that we could not at first realize the fact.
This sad news has put me in full sympathy with(深切同情) you. Your father was an honorable man and tender parent. Everybody who has known him must feel a great loss caused by his death. I quite understand how you feel now, but you are in duty bound to(有义务) look to your own heath and to take care of your family affairs. These would be impossible if you indulge your feeling in grief.
Please accept the deep and true sympathy which is all I can offer.