W. Somerset Maugham said this quote

But Philip was impatient with himself; he called to mind his idea of the pattern of life: the unhappiness he had suffered was no more than part of a decoration which was elaborate and beautiful; he told himself strenuously that he must accept with gaiety everything, dreariness and excitement, pleasure and pain, because it added to the richness of the design.