Friedrich Nietzsche said this quote

That which does not kill us makes us stronger.