Answer
In his preface to the Records of the Grand Historian, Sima Qian draws parallels to the Spring and Autumn Annals, Zuo Commentary, and the Classic of Poetry, noting that each was composed in response to personal hardship. He saw his own magnum opus as a continuation of this tradition, using his unjust punishment as motivation to compile a comprehensive history of China that would preserve the past for future generations.