Patriarch Zhen Yuan detained them in the temple, scolding them daily. Helpless, Sun Wukong had to plead: 'Great Immortal, calm your anger. Let me, Old Sun, go find a magic formula to see if this tree can be revived.' Patriarch Zhen Yuan Upon hearing this, he released Sun Wukong and gave him three days to find a way to revive the tree.
Sun Wukong did a somersault cloud and visited all three islands and ten continents, seeking help from various immortals. He first went to the Three Stars of Fortune, Prosperity, and Longevity, but all said they lacked such divine power. He then went to the Eastern Emperor and Guanyin Bodhisattva to ask, but none had a good remedy. All the immortals said: 'This is the treasure of Patriarch Zhen Yuan; it is no small matter. Even we cannot turn things around.' Wukong was disheartened, anxiously scratching his ears and cheeks.
Just as Wukong was in despair, he suddenly remembered that Guanyin Bodhisattva is the one who relieves suffering and has boundless magic power. He went straight to Mount Putuo Luojia in the South Sea and tearfully recounted the whole story to Guanyin Bodhisattva. Having heard him, Guanyin Bodhisattva laughed and said: 'You monkey, so reckless and ignorant! I have known Patriarch Zhen Yuan for a long time. That ginseng fruit tree of his is a spiritual root from the creation of the world; I do have a way to save it.'
Wukong was overjoyed and kowtowed. Guanyin Bodhisattva then rode on an auspicious cloud and went together with Sun Wukong to the Five Villages Temple. When Patriarch Zhen Yuan saw Guanyin Bodhisattva arriving, he hurried out to welcome her.
Guanyin Bodhisattva said to Patriarch Zhen Yuan: 'Great Immortal, I have come regarding the matter of Sun Wukong. Although he is mischievous, he does know how to repent. I hope you, Great Immortal, for the sake of Buddhism, will spare him this once.'
Patriarch Zhen Yuan said: 'Since the Bodhisattva has spoken, how would I dare disobey? But this tree is my very foundation; without this tree, my Five Villages Temple would cease to exist.'
Guanyin Bodhisattva said: 'Do not worry; let me try.' She took the sweet dew water from her pure vase, gently sprinkled it with a willow branch, and immediately the ginseng fruit tree's branches and leaves spread out, revived in an instant, becoming even more lush than before, laden with fruit.
Seeing this, Patriarch Zhen Yuan was extremely delighted and thanked her over and over. After this, Patriarch Zhen Yuan resolved his differences with Tang Sanzang and his disciples and became sworn brothers with them. Having gone through this ordeal, the four master and disciples gained further cultivation. They bid farewell to the Great Immortal and continued their journey westward.