Nietzsche wrote "what does not kill you, makes you stronger" before he was diagnosed with syphilis.*
*The popular story about Nietzsche contracting syphilis is not considered accurate. We know that he was diagnosed with syphilis at the time, but he may have suffered from another illness.