proverb

Kill one to warn a hundred.

warning

said to mean

Many people will be warned if you punish one.