shā​jī​jǐng​hóu

to punish someone as a warning to others