This encounter was included as the first kōan of the Blue Cliff Record.
The most popular account relates that Bodhidharma was admitted into the Shaolin temple after nine years in the cave and taught there for some time.