I have looked in the mirror every morning and asked myself: "If today were the last day of my life, would I want to do what I am about to do today?" And whenever the answer has been "No" for too many days in a row, I know I need to change something.
Source, in full
The original version of the "live each day" quote goes back at least to 1980, when the film Breaker Morant featured the following version (see the transcript here): "Live every day as if it were going to be your last. One day, you're sure to be right."