Terry Pratchett said this quote

Knowing that you are going to die is, I suspect, the beginning of wisdom.