Cesare Beccaria (1735–1794), Italian jurist, philosopher. On Crimes and Punishments, Introduction (1764).
Thomas Carlyle attributes a similar utterance to Charles de Montesquieu, in History of Frederick the Great (1858-1865) bk. 16, ch. 1: "Happy the people whose annals are blank in history-books!"