Ravana (shiv tandav stotra) was a great devotee of Mahadev and once thought that why not take Shankar to Lanka only. But when Shiva didnt agree to leave Kailash Mountain, Ravana thought that I am so powerful, I can carry Kailash mountain to Lanka and then Shiv will also be their. Ravana full with ego and power in his head, lifted Kailash mountain. Shivji got angry at this and he just pressed Kailash Mountains with his thumb, with presure from Shiva’s thumb Kailash Mountain located where it was located.
But at the same time, Ravan began to muddle with pain because his hand was buried under Kailash Mountains. In that pain, Ravana started praising Mahadev. This praise was called Shiv Tandava Stotra. Shiva was very pleased with Shiva Tandava and he gave Ravana freedom from suffering. Shiva also gave Ravana Lanka of gold that was full of prosperity and accomplishment for his devotion. As a boon Ravana also received knowledge, science and immortality from Shankar. It is said that the person just by listening to Shiv Tandava, gets happiness, children, property, prosperity etc.