Samuel Beckett said this quote

Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.—Samuel Beckett, Worstward Ho (1983)