Mahatma Gandhi said this quote

Live as if you were to die tomorrow. Learn as if you were to live forever.