前車覆，後車戒

Proverb

 * 1) previous experience of failure can serve as a lesson for oneself or others