I’m guessing I heard this advice many times in my life but it was only in the last 5 years I started adhering to it.
This advice has helped at many times in my life and particularly with dealing with my own mortality. I no longer spend hours laying in bed in a cold sweat worrying about death. It’s ok to care about the things you can’t control, but if you can’t change them, don’t waste energy obsessing over them.