In the third year of the Tang Xianqing era (658 CE), Wang Zhi, from Qizhou, was appointed as a county magistrate in Yizhou. When his term expired he returned home. He had a beautiful daughter, who had died on her way to be married. Her coffin had been placed for several months in a monastery. Within this monastery there was a student who slept in one of the rooms, and early one night he saw the girl come to him, beautiful and resplendently ornamented. She wanted to open her heart and enfold him; the student accepted her, and over a month they grew very close, the girl giving him a bronze mirror, a towel and a comb. When the magistrate wanted the student to leave, he and the girl shared a final secret farewell.
Her family had been searching without success for the gifts, and when the magistrate sent people to search the rooms, they were discovered in the student’s chambers. The magistrate sent his retinue to bind the student, believing that he had stolen them. The student appealed and explained that he had not only received those items, but had also been left an upper and lower robe by her. When the magistrate sent people to open the coffin and check, it turned out to lack these garments, and having seen this proof, treated this as settling the matter. Asking about him in the village, it was established that he was from Qizhou, had followed his parents to a posting in the south, and, after his mother and father had died, he travelled the various prefectures to study and was due to return soon. The magistrate granted him robes and a horse, packing his things and returning together, where he treated him as a son-in-law and they felt great affection for one another.
From Fayuanzhulin.
Li Fang 李昉, et al., Taiping guangji 太平廣記 (Extensive Gleanings from the Era of Great Harmony), 10 vols (Beijing: Zhonghua shuju, 1961), vii, 328.2608:
王志
唐顯慶三年。岐州人王志。任益州縣令。考滿還鄉。有女美。未嫁道亡。停縣州寺中累月。寺中先有學生。停一房。夜初見此女來。粧飾華麗。欲伸繾綣。學生納之。相知經月。此女贈生一銅鏡。巾櫛各一。令欲上道。女與生密共辭別。家人求此物不得。令遺巡房求索。于生房得之。令遺左右縛此生。以為私盜。學生訴其事。非唯得此物。兼留上下二衣。令遺人開棺檢之。果無此衣。既見此徵。于是釋之。問其鄉里。乃岐州人。因從父南任。父母俱亡。遊諸州學問。不久當還。令給衣馬。裝束同歸。以為女夫。憐愛甚重。出法苑珠林