ㄔㄥˊㄑㄧㄢˊㄅㄧˋㄏㄡˋchéngqián‑bìhòu

惩前毖后
  1. 警戒從前過失使以後謹慎行事不再犯錯 凡事懲前毖後不會重蹈覆轍」。

lit. to punish those before to prevent those after (idiom)​; to criticize former mistakes firmly to prevent them happening again
tirer la leçon des erreurs passées