As per Hindu legend, sage Gautama is believed to have worshiped the deity here. As per the temple legend, sage Vasishtha is considered the most devout devotee of Krishna, an avatar of Vishnu. Once the sage was worshiping Krishna with an idol made of butter. Krishna appeared in the form of a child, ate the idol and ran away. Vasishtha was chasing the child, who came running to this place. There were many other sages who were performing penance at this place. Krishna gave them a boon that he would be tied by the devotion of the sages and requested them to help Vashishta with his wishes. The sages requested Krishna to remain in this place and provide appearance to his devotees like he did for them. Vashishta and all the sages were pleased with the view of Krishna.