Liu Pi Requests Divination 劉闢求卦

Soon after Liu Pi[1] 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)

[1] On Liu Pi 劉闢 (d. 806 CE), see https://en.wikipedia.org/wiki/Liu_Pi_(official).