Traditionally the origin of Chán in China is credited to the Indian monk Bodhidharma. The story of his life, and of the Six Patriarchs, was constructed during the Tang Dynasty to lend credibility to the growing Chán-school.[13]
Bodhidharma is recorded as having come into China from India during the time of Southern and Northern Dynasties to teach a "special transmission outside scriptures" which "did not stand upon words".[42] Only scarce historical information is available about him, but his hagiography developed when the Chan tradition grew stronger and gained prominence in the early 8th century. By this time a lineage of the six ancestral founders of Chán in China was developed.[43] The short text Two Entrances and Four Acts, written by T'an-lín (曇林; 506–574), contains teachings which are attributed to Bodhidharma. The text is known from the Dunhuang-manuscripts.
The actual origins of Chán may lie in ascetic practitioners of Buddhism, who found refuge in forests and mountains.[44] Huike, "a dhuta (extreme ascetic) who schooled others",[44] figures in the stories about Bodhidharma. Huike is regarded as the second Chán patriarch, appointed by Bodhidharma to succeed him. One of Huike's students, Sengcan, to whom is ascribed the Xinxin Ming, is regarded as the third patriarch