Two incarnations of Lord Vishnu by the names of Nara and Vishnu did penance at Badrikasharama. Both of them used to worship the idol of Shiva daily. Lord Shiva used to arrive in his subtle form and accept their offerings without being noticed by them.
One day Lord Shiva appeared before them. Nara and Narayana eulogized him and requested to remain at that place forever. Lord Shiva accepted their request and established himself as