When Wei Nankang (i.e., Wei Gao, 745-805CE) was garrisoning Shu, he constantly cared for a parrot, which was extremely intelligent. The person who had tamed it had also told it of Buddhist philosophy, saying: “If you wish to worship the Buddha, you must use thought to attain freedom from thought.” The parrot would then raise its head and spread its wings, as if it were listening, as if it were accepting. When receiving teaching on Buddhist thought, it would remain silent without answering, and then chant: “Amitabha” once, as if to indicate that it had been awakened, achieving insight into causality through thought, and into the truth through no-thought. One day it did not shake and did not fall forward, but knocked its wings, curled its feet, covered itself and died. Duke Wei ordered it be cremated, which left ten relics, for the burial of which the duke erected a pagoda, naming it the Parrot Pagoda.
Anon., Huhai xinwen yijian xuzhi, 後2.267 (Tale 486):
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).