Don’t cry because it’s over. Smile because it happened.

Dr. Seuss (1904-1991) American author, illustrator [pseud. of Theodor Geisel]
(Attributed)

Often attributed to Dr. Seuss without a citation of source. Also sometimes attributed, without citation to Gabriel García Márquez: "No llores porque ya se terminó ... sonríe, porque sucedió."