前車の覆るは後車の戒め(ぜんしゃのくつがえるはこうしゃのいましめ)

Japanese vocabulary

Meaning: learn wisdom from the follies of others; learn from others' mistakes; the toppling over of the cart in front serves as a warning for the cart behind

See it used in real works