Of course no one says that on their deathbed. Many people on their deathbeds have been retired for more than 20 years.
People in their 20s often care about their career. People in their 80s often do not. Who's right? It's often a trade-off. The goal is not to be happy on your deathbed; it's to be happy throughout life.