yǐ​jǐng​xiào​yóu

to warn against following bad examples

以儆效尤 yǐ​jǐng​xiào​yóu
to warn against following bad examples
(idiom) to punish someone for their wrongdoing as a way to warn others against following their example

Frequency

Movie subtitles
0.180 per million appears in 0% of films
Written text
0.151 per million

Sources