Fyodor Dostoyevsky said this quote

Nothing helps a man to reform like thinking of the past with regret.