Gajendhra Moksha legendnto an elephant and a crocodile respectively by the curse of great sages Agasthya and Dewala muni. One day the elephant's leg was caught by the crocodile. It is said that the location was in Nepal. It is said that both of them fought hard for many years with their herds and while fighting, they came to the place near this temple. But ultimately the King Elephant weakened and took the lotus flower from river in its trunk and prayed to the supreme god Vishnu (Hari) to save him. Vishnu heard his prayer and cut down the crocodile with his Chakra. But the touch of the chakra released Huhu from the curse. Vishnu also released Indrayamuna from his curse and took him to his abode Vaikuntha.