Hegel remarks somewhere that all great world-historic facts and personages appear, so to speak, twice. He forgot to add: the first time as tragedy, the second time as farce.
Karl Marx (1818-1883) German philosopher, economist, sociologist, historian, journalist
The Eighteenth Brumaire of Louis Bonaparte, ch. 1. (1852) [tr. Padover]
(Source)
Often paraphrased: "History repeats itself, first as tragedy then as farce."