Cogitationis poenam nemo patitur
The Latin expression cogitationis poenam nemo patitur is used in the field of criminal law to express that only a conduct, and not a simple thought, can constitute a crime. This phrase originally appeared in the "Institutions" of the jurist Ulpian (170-228).
Source: Wikipedia — Cogitationis poenam nemo patitur (CC BY-SA 4.0)