Friedrich Nietzsche said this quote

To live is to suffer, to survive is to find some meaning in the suffering.