"Ever tried. Ever failed. No matter. Try again. Fail again. Fail better."
The line
It comes from a short, bleak book.
Samuel Beckett published Worstward Ho in 1983. It is a short prose piece and nobody would call it easy reading.
The line everyone knows turns up a few short paragraphs in.