Sophocles said this quote

Take these things to heart, my son, I warn you.All men make mistakes, it is only human.But once the wrong is done, a mancan turn his back on folly, misfortune too,if he tries to make amends, however low he's fallen,and stops his bullnecked ways. Stubbornnessbrands you for stupidity - pride is a crime.