Leo Tolstoy said this quote

And you know, there's less charm in life when you think about death--but it's more peaceful.