Disclaimer: This translation does not guarantee complete accuracy, please confirm with the original page text.
The Mahapurana, Uttara Purana
The Tirthankara spent four months in the state of Channastya, attaining purity. He then went to the forest where he had received his initiation and sat beneath a large Deodar tree. He was becoming increasingly pure by following the rules of Tela, his liberation was near, and his power was growing. He practiced yoga for seven days, deepening his meditation on Dharma. At that time, a demon named Shambara, a creature of the Kamatha, was flying through the sky in his aerial chariot. Suddenly, his chariot stopped. Using his knowledge of Vibhangavadhi, he saw clearly the karmic bonds of his past lives. Enraged, he roared loudly and began to pour down a torrential rain. Like Yama, the god of death, this wicked being continued to unleash various calamities for seven days, even bringing small mountains to throw at the Tirthankara.
Knowing the cause of these attacks through his knowledge of Avadhi, the king of the earth emerged from the ground with his wife. He was adorned with a canopy of serpents, their bodies sparkling with jewels. The king of the earth stood before the Tirthankara, shielding him with the serpents, while his wife held a vajra-shaped umbrella high above the Tirthankara. The Acharya says, "It is natural for cruel snakes to remember the kindness shown to them, just as compassionate people never forget the kindness they have received."
Then, due to the power of the Tirthankara's meditation, the demon's karmic obscurations were destroyed, and all the calamities he had unleashed vanished.
The Tirthankara, through his second Shukla meditation, conquered the remaining three types of karmic bondage. On the thirteenth day of the dark fortnight of Chaitra, at dawn, under the constellation Visakha, he attained Kevala Jnana, the all-knowing state, illuminating all worlds. This was a great event.
At that time, Indra worshipped the Tirthankara's Kevala Jnana. Shambara, the astrologer, also attained liberation at that time and became peaceful. He attained pure Samyak Darshan. Seeing this, the seven hundred ascetics living in the forest abandoned their false beliefs and took up the vows of restraint. They all became pure Samyak Drishtis and, with great reverence, circumambulated the Tirthankara, bowing at his feet.