Sun Wukong spent forty-nine days in the furnace, but instead of being burned to death, he developed fiery golden eyes in the wind position. When the day of opening the furnace came, he kicked over the Eight Trigrams Furnace with one foot, leaped out, holding the Ruyi Jingu Bang, and fought his way all the way up to the Lingxiao Palace. Wherever he passed, not a single heavenly soldier or general could stop him; all the immortals fled in panic, and even the Four Heavenly Kings and the Nine Luminaries could not withstand him. The Monkey King fought all the way to the Tongming Hall, throwing the area in front of the Lingxiao Hall into complete chaos. Seeing that the gods could not subdue him, the Jade Emperor was terrified and had no choice but to send someone to invite the Tathagata Buddha from the West to come and vanquish the demon.
The Tathagata Buddha arrived and asked Sun Wukong why he was causing such havoc in the Heavenly Palace. Sun Wukong shouted loudly, "I, Old Sun, am highly skilled and want to be the Jade Emperor. As the saying goes, the emperor's throne rotates; next year it will be my turn. If you let me sit in the Heavenly Palace, I will stop causing trouble." Tathagata Buddha smiled and said, "You reckless monkey, stop talking nonsense! If you have the skill, jump out of my palm, then I will report to the Jade Emperor and let you become the master of the Heavenly Palace."
Sun Wukong thought to himself, the Buddha's palm can't be that big; with one somersault covering one hundred and eight thousand li, how could it not be easy to jump out? He then jumped into the Buddha's palm, and with one somersault, he rode the clouds away. In a moment, he saw five fleshy red pillars and, thinking they were the edge of the sky, wrote the big characters "The Great Sage, Equal of Heaven, was here" on the middle pillar, pissed a monkey urine, and then turned back. When he reached the Buddha's palm, he discovered that those five pillars were actually the five fingers of Tathagata Buddha. So, his somersault cloud had never actually jumped out of the Buddha's palm!
The Tathagata Buddha pushed with his hand, pressing Sun Wukong under the Five Elements Mountain, and then pasted a talisman with the six-character mantra 'Om Mani Padme Hum' on the mountaintop, ordering the Earth God to watch over him. No matter how he struggled, he could not free himself, and had no choice but to wait bitterly under the mountain for five hundred years for the arrival of the scripture pilgrim.