while there's life there's hope

Also,
where there's life there's hope. So long as someone or something ailing is alive, there is hope for recovery. For example, The company has survived previous recessions; while there's life there's hope. A statement made about dying individuals since ancient times, it was cited in numerous proverb collections from 1539 on. Today it is also applied to inanimate matters.