A well known poem, the Song of the Precious Mirror Samādhi, is attributed to Yunyan in Juefan Huihong's biographical compilation of 1119, the Chanlin sengbao zhuan (Chronicle of the Saṅgha Treasure in the Groves of Chán). This is the first time this poem is mentioned in the historical record. Huihong writes that the poem was given to Dongshan Liangjie, Yunyan's student, but that he believes Yunyan's teacher probably gave it to him in turn. Huihong further relates that he came upon the poem in 1108, when it was given to a scholar Zhu Yan by a monk, whom he does not identify. The scholar Morten Schlütter notes that the poem's provenance is doubtful given the way it came to Huihong, and furthermore the style differs substantially from works of the era that Huihong attributes it to. Most later historical sources, such as the Zengaku daijiten, the Bussho kaisetsu daijiten, and Shinsan zenseki mokuroku, attribute the poem to Dongshan Liangjie rather than Yunyan, although again, neither is likely.