Having escaped the torment of the mountain of knives, Red Boy was fitted by Guanyin Bodhisattva with five golden rings: one on his head, one on each wrist, and one on each ankle. Unwilling to submit, he struggled and tried to flee. Guanyin Bodhisattva recited the six-syllable mantra 'Om Mani Padme Hum,' and the golden rings tightened, causing Red Boy to writhe and tumble in agony. Finding no way to appeal for mercy, he could only prostrate himself on the ground, vowing to convert to the Buddhist faith. Thus Guanyin Bodhisattva accepted him as the Sudhana child attendant and bestowed upon him a Dharma name. From then on, Red Boy reformed his ways and served at the Bodhisattva's side.
Having overcome this ordeal, Tang Sanzang and his disciples were reunited once more. Guanyin Bodhisattva admonished the pilgrims not to harbor stray thoughts but to focus wholeheartedly on journeying west to obtain the true scriptures. The four pilgrims expressed their gratitude to the Bodhisattva, packed their belongings, bid farewell to the Fire-Cloud Cave, and continued westward.
Now, having left the Flaming Mountain, Tang Sanzang and his party journeyed westward. Before long, they arrived in a kingdom where the walls were high and the moats wide, and the atmosphere was extraordinary. Entering the city, they found bustling streets, but the temples along the road were neglected. The monks were gaunt and sallow, wore cangues and chains, and were forced by Daoist priests to do hard labor. Seeing this, Tang Sanzang felt compassion. Upon inquiry, he learned that the king venerated Daoism, esteemed Daoists while disparaging Buddhists, and that three fiendish Daoists served as state preceptors — named the Tiger-Strength Immortal, the Deer-Strength Immortal, and the Goat-Strength Immortal — who had thrown the court into disorder and caused the people to suffer.
On hearing this, Wukong's fiery eyes and golden pupils discerned at once that these state preceptors were demons. He thought: 'How can such harmful monsters be allowed to remain for long?' So he transformed himself into a wandering Daoist and infiltrated the Three Pure Ones Temple to investigate. At midnight, he saw the three state preceptors setting up an altar and performing rituals in the hall. Approaching for a closer look, Wukong confirmed they were indeed demons. He then summoned Zhu Bajie and Sha Wujing, and the three of them ate all the offerings on the altar, urinated to defile the ritual site, and enraged the three demons, throwing them into chaos.