前事不忘,后事之师

前事不忘,後事之師
qiánshìwàng,hòushìzhīshī
don't forget past events, they can guide you in future (idiom); benefit from past experience

CEDICT

Entry Composition