There is a wonderful piece of writing by Michael Josephson, called "A Life That Matters" and it's worth looking up and reading in its entirety. Here I quote a small snippet from it:
".....What will matter is not what you bought, but what you built; not what you got, but what you gave. What will matter is not your success, but your significance. What will matter is not what you learned, but what you taught...."
To try and live by these words is a big ask, but worth a try.