André Maurois said this quote

The first recipe for happiness is: avoid too lengthy meditation on the past.