After the people expressed their deep gratitude, Tang Sanzang and his disciples bid farewell to Jinping Prefecture and continued their journey to the West to retrieve the scriptures.
It is said that before long, Tang Sanzang and his disciples arrived at the border of the Kingdom of Tianzhu. The king of Tianzhu had a princess born of gold and jade—a beauty with a face like a flower and a moon. One day, while she was playing in the imperial garden, a strange wind suddenly arose, and the Jade Rabbit spirit, who had fled from the Guanghan Palace to the mortal world, whisked her away. The Jade Rabbit spirit, transformed into the princess, returned to the palace, impersonated her, and intended to marry Tang Sanzang. One day, she issued a decree to toss an embroidered ball in front of the courier inn, proclaiming that she would take the holy monk from the Great Tang in the Central Plains as her husband.
When Tang Sanzang and his disciples heard this, they all found it suspicious. Sun Wukong said, "Master, how could the embroidered ball toss here for marriage specify you alone? There must be something dubious about it." Tang Sanzang did not take it seriously, only regarding it as a matter of fate. While he was sitting in meditation at the courier inn, he suddenly heard drums and gongs clanging and a great din of voices. It turned out that the embroidered ball had indeed been tossed down and, neither off-center nor askew, had hit Tang Sanzang right on the head. When the king heard the news, he was overjoyed and immediately ordered eunuchs to bring Tang Sanzang into the palace, intending to set a wedding day.
Tang Sanzang was greatly alarmed and repeatedly said, "I am a monk who has left the home life—how could I dare to defile the royal family? I beg Your Majesty to show mercy and let me go west to retrieve the scriptures." The king refused to listen, only assuming that he was feigning modesty, and instead ordered palace maids to wait on him attentively. Sun Wukong secretly observed that although the fake princess was beautiful, there was a hidden demonic aura between her brows, and he was already eighty or ninety percent sure that she must be a spirit.
Tang Sanzang, confined in the palace, was deeply depressed. Sun Wukong then found an opportunity to go to the imperial garden, where he indeed saw the fake princess acting suspiciously. He stepped forward to test her; the fake princess spoke with a smooth tongue and a cunning smile, trying to coax Tang Sanzang into marriage. Sun Wukong sneered and said, "You spirit, what audacity! How dare you impersonate the princess and deceive my master!" Seeing that she was exposed, the fake princess immediately turned hostile, revealed her ferocious features, drew her sword, and thrust it at him.