In her famous article "Regrets of the Dying", palliative nurse Bronnie Ware outlines the 5 most common regrets people express at the end their life.
https://bronnieware.com/blog/regrets-of-the-dying/
Paul Graham took inspiration from her article and developed "Five Commands for Life" as an antidote to a life of regret.