You searched for: “non quam diu
Quam bene vivas refert, non quam diu. (Latin proverb)
Translation: "The important thing is not how long you live, but how well you live."