DECLARATION OF HUMAN AND CIVIC RIGHTS OF 26 AUGUST 1789
ARTICLE 8
The Law must prescribe only the punishments that are strictly and evidently necessary; and no one may be punished except by virtue of a Law drawn up and promulgated before the offense is committed, and legally applied.
Non-retroactivity
Nulla poena sine lege
EDIT.