Correct

前事不忘,后事之师

/ qiánshì bù wàng, hòushì zhī shī /
Strokes

Definition

don't forget past events, they can guide you in future (idiom); benefit from past experience

Example

Definition

past experience, if not forgotten, may serve as a guide for the future; lessons one has learned from the past can guide one in the future