When Jia Zheng saw that he was working hard, he was greatly relieved, but still uneasy, fearing he would relapse into his old habits. But Jia Baoyu was unmoved and devoted himself single-mindedly to his studies. Soon, the autumn provincial examination happened to arrive, and Baoyu signed up to take it. Most people thought he was just making a casual attempt and held no hope, but when the results were posted, Jia Baoyu had actually passed the exam, ranking seventh as a provincial graduate. When the Jia household heard the news, everyone was jubilant. Jia Zheng even wept tears of joy, sighing that their ancestors’ spirits were watching over them and their glory would not fade.
According to convention, since Jia Baoyu had passed the provincial exam, a bright future awaited him, and he should have stayed home to enjoy wealth and honor and repay his parents' kindness. However, he was not overjoyed by this; instead, he grew even more detached. He resigned from his nominal post in the Rongguo Mansion, saying only that he wished to devote himself to spiritual cultivation. One day, he went alone to Piling Courier Station, intending to go to the temple to fulfill a vow and thank the gods.
When he was halfway there, as dusk was falling, he suddenly saw an old monk and an old Taoist walking slowly from the hollow of a mountain up ahead. The monk had a gaunt face, and the Taoist had white hair but a youthful complexion. They walked side by side, looking ethereal and immortal. Jia Baoyu felt a stir in his heart upon seeing them, as if he had met them before. When the monk and Taoist saw him, they also stopped and smiled. The monk pointed at Baoyu and said to the Taoist: 'A pity, a pity! You and I didn't enlighten him, but he has awakened on his own.' The Taoist stroked his beard and smiled: 'The root of attachment is firmly planted, but eventually it will be resolved. Now that the ties of the mortal world are over, it's time to go together.'
Jia Baoyu listened, as if suddenly waking from a dream, and realized that these two were the Lame Taoist and the Scabby-headed Monk who had enlightened him. He achieved full enlightenment, put his palms together in a greeting to the monk and Taoist, and said, 'Disciple was once guided by you, and is now liberated. I wish to follow the two immortals.' After saying this, he was ready to leave with the monk and Taoist.