The deities went to lord Vishnu, after being tormented by the demons. They requested him to annihilate the demons. After assuring them, Lord Vishnu went to Kailash mountain to do his penance. But even his tremendous penance was not enough to please Lord Shiva. Lord Vishnu then worshipped lord Shiva by chanting the mantras of Shiva Sahastranamavali. He also offered one thousand lotus flowers to lord Shiva in course of his worship.
One day Shiva wanted to test the devotion of lord Vishnu. He stole one lotus flower from among the one thousand flowers. When lord Vishnu began his worship he found that there was one flower less. To make up for this deficiency, he offered his one eye to lord Shiva – his eye which has been compared with a lotus flower.
Lord Shiva was very mush impressed by his exceptional devotion. He appeared before Vishnu and asked him to demand any boon he wished. Lord Vishnu demanded a divine weapon to annihilate the demons. Lord Shiva gave him a sparkling Sudharshan Chakra. On the request of Lord Vishnu he established himself in the form of Harishwar Shivalinga. At last lord Vishnu killed the demon with his Sudarshan Chakra.
Suta told the sages that lord Vishnu had worshipped lord Shiva with the help of his one thousand names. Some of the chief names of Shiva are Shiva, Har, Mrid, Rudra, Pushkar, Pushpalochan, Arthigamya, Sadachar, Sharv, Shambhu, Maheshwar, etc.
A devotee who chants these one thousand names of lord Shiva attains all the accomplishments. Chanting it during distress helps a man to become free from all kings of misfortune. Lord Vishnu could kill the demons only because of the power he derived from the chanting of Sahastranam.