As per another Hindu legend, the presiding deity was worshiped by Yama, the god of death. He requested Vishnu to stay in the place and built a temple with the help of Vishwakarma, the divine architect.