Germany
IX. The JudiciaryArticle 103[Fair trial](2) An act may be punished only if it was defi ned by a law as a criminal offence before the act was committed.
Nulla poena sine lege
EDIT.