You searched for: “actus non facit reum nisi mens est rea
Actus non facit reum nisi mens est rea.
The act does not make a criminal unless the intention is criminal.

A legal maxim.