Friedrich Nietzsche said this quote

The man consummatig his life dies his death triumphantly,surrounded by men filled with hope and making solmn vows, thus one should learn to die.Friedrich Nietzsche - thus spoke zarathustra.