Soon after Liu Pi of the Tang had passed the imperial examinations, he visited a diviner to confirm, by means of casting yarrow from a calabash, that he would certainly receive an official salary. The gourd released a blind pair, and when the diviner was finished, he spoke to Pi: “Twenty years from now, you will be appointed in the southwest, and it will not end well.” Pi left rolls of silk as a gift. Afterwards, he ‘threw off his commoner’s clothes’, following Secretariat Chief Wei to Xichuan and rising to serve as Imperial Censor and Superior Administrator of the Army On Campaign. After twenty years, Wei passed away, sending Pi to court to report this, requesting advancement to Dongchuan. The decree did not permit this. Pi therefore dressed in simple clothes and rode alone back to the calabash diviner. Using the yarrow, when the stalks had aligned and the divination was complete, they addressed Pi: “Twenty years ago I once made a divination for someone and received the result ‘Mishap to follow’. Now we get the same reading again; is this not the virtue of the ancients?” Pi then submitted in agreement. The calabash diviner said: “If you ask other people about this, catastrophe will reach you.” Pi did not entirely trust him. He returned to Shu, and indeed rebelled. Emperor Xianzong (r. 805-20 CE) caught him and executed him on Gao Street.
Li Rong 李冗, Du yi zhi, 獨異志 (Outstanding Fantastic Stories), 上1.11 (Tale 67):
Li Rong 李冗, Du yi zhi, 獨異志 (Outstanding Fantastic Stories) in Du yi zhi, Xuanshi Zhi 獨異志，宣室志 (Outstanding Fantastic Stories, Stories from the Chamber of Dissemination), edited by Zhang Yongqin 张永钦 and Hou Zhiming 侯志明 (Beijing: Zhonghua shuju, 1983)