《明史·列传·卷二十五》
至正中，考中进士，担任盐山尹，弃官归乡。
至正中，举进士，任盐山尹，弃官归。
In the middle of the Zhizheng period, he passed the jinshi imperial examination and served as the magistrate of Yanshan County, but he gave up the post and returned to his hometown.
<s>[INST] Rewrite the following English passage in the style of Classical Chinese: In the middle of the Zhizheng period, he passed the jinshi imperial examination and served as the magistrate of Yanshan County, but he gave up the post and returned to his hometown. [/INST] 至正中，举进士，任盐山尹，弃官归。</s>
Rewrite the following English passage in the style of Classical Chinese: In the middle of the Zhizheng period, he passed the jinshi imperial examination and served as the magistrate of Yanshan County, but he gave up the post and returned to his hometown.
user
至正中，举进士，任盐山尹，弃官归。
assistant