Robert Louis Stevenson said this quote

he should have done all things otherwise: poignant regrets, weary, incessant toiling of the mind to change what was unchangeable, to plan what was now useless, to be the architect of the irrevocable past.