Sri Guruvayur Temple – Sri Naradiya Purana mentions how Janamejaya was cured of leprosy by taking refuge under the feet of Guruvayuruppan. The Pandavas handed over the kingdom to their grandson Parikshit, and left for the forest to spend their last days. Parikshit died of the curse of a saint, who cursed that Parikshit will die of snake bite by Takshaka, the king of serpents. After the death of Parikshit he was succeeded by his son Janamejaya. Janamejaya conducted a sacrifice to destroy all the snakes of the world including Takshaka, who was the cause of his father’s death . Hundreds of thousands of snakes fell into the sacrificial fire and were killed, but the sacrifice was stopped by a Brahmin called Astika, before Takshaka was killed.
Since Janamejaya was responsible for the death of millions of snakes, he was afflicted with leprosy. He lost all hope of a cure. One day Sage Atreya (son of Atri) came before Janamejaya and told him to take refuge under the feet of Krishna at Guruvayoor. Atreya told him that in the temple at Guruvayur the effulgence of Sri Hari is at its best and Vishnu showers his blessings on all devotees. He immediately rushed there and spent the next ten months worshipping the God at Guruvayur. At the end of ten months, he returned home hale and hearty and took the astrologer to task for making a false prediction. The astrologer told him that he would find the mark of a snakebite on his left leg. He had escaped death only because he was at that time in a temple where Anantha (the emperor of serpents) was present and Anantha was the brother to the God at Guruvayur where he had finished worshipping.