Before Fan Zhi, Duke of Lu (911-964 CE), became influential, he was seated in a teahouse in Fengqiu, holding a fan on which was inscribed ‘The heat of summer drives out corrupt officials; a pure breeze brings back the departed.’ A strange and ugly figure suddenly appeared before him and bowed, saying: “How can the injustice of corrupt government end like the summer heat? Someday the gentleman will have to think deeply about this matter.” It then picked up the fan and departed. The gentleman was left sorrowful and unable to fathom the matter. Several days after, he passed a temple and saw a short spirit figure made of earth and wood – looking just like the strange and ugly person from the teahouse – holding his fan in its hands; the gentleman was astonished by this. Afterwards, on attaining a position of power, his first action was to consult on settling the  unified code of punishment.
Anon., Huhai xinwen yijian xuzhi, 後2.225-26 (Tale 402):
范魯公質未顯時，坐封丘茶肆，手持扇，偶題「大暑去酷吏，清風來故人。」忽有一怪陋人前揖曰：「世之酷吏冤抑何止如大暑，公他日當深究此弊。」因攜其扇而去。公憫然莫測。後數日，過一廟，見一土木短鬼，狀貌酷類茶肆中者，扇亦在其手中，公心異焉。後致大用，首建議詳定  刑統。
Yuan Haowen 元好問, Chang Zhenguo 常振國 (ed), Xu Yijian zhi 續夷堅志 (Continued Records of the Listener), and Anon., Jin Xin 金心 (ed.), Huhai xinwen yijian xuzhi 湖海新聞夷堅續志 (Continuation of Records of the Listener with New Items from the Lakes and Seas) (Beijing: Zhonghua shuju, 1986).