Technically, it is from Cesare Beccaria, but Jefferson used the translation in his book.
Thomas Jefferson's "Commonplace Book," 1774-1776, quoting (in translation) 18th century criminologist Cesare Beccaria in Chapter 40 of "On Crimes and Punishment", 1764.