Upon hearing this, the Handsome Monkey King was overjoyed, bowed again to thank him, and went straight into the mountain. Before he had walked two li, he saw the cave door half open, and out came a immortal boy. Wukong greeted him and explained his purpose. The immortal boy led him into the cave, where Patriarch Subodhi sat high on the dharma platform, with three thousand disciples standing in attendance. The Patriarch asked, "Where have you come from? What is your surname and given name?" Wukong replied, "Your disciple is the stone monkey of the Flower-Fruit Mountain in the Eastern Continent of Superior Body. I have been seeking the Way and immortals for eight or nine years before arriving here." The Patriarch smiled and said, "This monkey head of yours is different from others. Since you are a macaque, I will give you a Dharma name." He thought to himself, "My school has twelve characters, and when it comes to you, the character is precisely 'Awakening'. So I shall call you Sun Wukong."
The Patriarch called Wukong and asked, "What kind of Dao arts do you wish to learn?" Wukong only sought immortality. The Patriarch taught the 'Art' school of inviting immortals and planchette divination. Wukong asked, "Can this prolong life?" The Patriarch said, "No." Wukong declined. Next he taught the 'Flow' school of Confucianism, Buddhism, Taoism, and medicine. Wukong asked, "Can this achieve immortality?" The Patriarch said, "Don't even think about it!" Wukong refused. Then he taught the 'Stillness' school of meditation and sitting in contemplation. Wukong asked, "Can this prolong life?" The Patriarch said, "No!" Wukong still refused. The Patriarch said angrily, "You macaque, you are unwilling to learn anything—what do you want?" He took the warning ruler and struck Wukong on the head three times, then walked backwards inside, closing the middle door behind him.
Wukong knew that the Patriarch was instructing him to come for secret teaching after the third watch. At midnight, he quietly went to the back door. The Patriarch opened the door, led him into the secret chamber, and transmitted the formulas for the seventy-two transformations and the somersault cloud. Having received the true teaching, Wukong diligently practiced for half a year and mastered them all. One day, Wukong transformed into a pine tree and showed off in front of his elder fellow disciples. When the Patriarch saw this, he said angrily, "You macaque, how dare you show off? In the future, you will surely cause trouble. Leave quickly and do not stay here!"
Wukong kowtowed and said, "I beg the master to forgive my offense." The Patriarch said, "Forgiveness is not possible! From now on, do not say that you are my disciple, or I will make sure your life is forfeited!" Wukong had no choice but to bow and take leave of his master, tearfully riding the somersault cloud back to the Flower-Fruit Mountain.
Now, after the Handsome Monkey King obtained the As-You-Will Gold-Banded Cudgel, he drilled every day, thinking himself invincible under heaven, not knowing that disaster from the underworld awaited him.