proverb

While there is life there is hope.

hope

states that

As long as someone is alive, there is hope, he or she shouldn't give up; As long as something has not completely failed, there is always a chance of getting better.