Acknowledge the death of a stranger’s loved one with an object of condolences. Offering them spoken words is a repetitious event. If you have no financial means for a sympathy gift, your condolences should be time, to listen or support, to advise and acknowledge struggle that is not your own.
It matters not who died.
It’s just the decent thing to do.