Aus der Kriegsschule des Lebens. — Was mich nicht umbringt, macht mich stärker. (“Out of life’s school of war — what does not kill me makes me stronger.”)
The line is the whole of aphorism 8; its first clause — “from life’s school of war” — is almost always dropped in popular use.
✓Public domain
The source work, Nietzsche’s Twilight of the Idols, was first published in German in 1888 — long in the public domain. Early English translations such as Anthony Ludovici’s (1911) are also public domain; the popular wording is a near-literal rendering of the 1888 German, though some specific modern translations remain under their own copyright.
⚠ This reflects the original work, which is public domain. If your exact English wording comes from a specific modern translation, that translation may itself still be under copyright — check the edition you quote.