Do for this life as if you live forever, do for the afterlife as if you will die tomorrow.
or simply: