You can say for someone whose father died:
I'm so sorry about your father.
"I'm so sorry to hear about your dad's death.
"I am so sorry to learn about your dad's passing.
What a pity !
I know this must be a difficult time for you and your family
Please accept my sincerest condolences for your loss.