Yǐ shǐ wéi jìng, kěyǐzhīdéshī - zhè shì Táng Tàizōng de míngyán.
'Taking history as a mirror, one can know gain and loss' - a famous dictum of Tang Taizong.
Tips
history
From 唐太宗李世民 (at the death of minister 魏征, 643 CE), recorded in 《旧唐书·魏徵传》: 以铜为镜,可以正衣冠;以史为镜,可以知兴替;以人为镜,可以明得失. The 'three mirrors' of Taizong, a foundational text of Chinese political wisdom.
usage
Often cited in the condensed form 以史为镜,可以知得失 (conflating the second and third mirrors). 得失 = 'gains and losses', i.e. what was done rightly and wrongly.