I think you’re confusing Voltaire with the Marquis de Sade and Machiavelli
I was specifically thinking of Candide