André Maurois said this quote

Often we allow ourselves to be upset by small things we should despise and forget. We lose many irreplaceable hours brooding over grievances that, in a year's time, will be forgotten by us and by everybody. No, let us devote our life to worthwhile actions and feelings, to great thoughts, real affections and enduring undertakings.