deterrent

noun

Definitions of deterrent

English

something that discourages or is intended to discourage someone from doing something

We hope that his jail sentence will serve as a deterrent to others.