For example: Sima Qian. You can say that he struggled to record history in prison and wrote down historical records.
King Wen was arrested and played Zhouyi, in which You Er was in the Spring and Autumn Period, and Qu Yuan was exiled, but Li Sao was given the privilege of being blind.
Digging Mandarin, 300 poems are almost written by sages. These will do.