In the city of Avanti there used to be a righteous brahmana. He had two sons, Sunidhi and Vedanidhi. Vedanidhi was wicked.
The king of Avanti was so pleased with the brahmana that he gave him a golden bangle as a present. The brahmana took it home and gave it to his wife to store safely. There it was discovered by Vedanidhi. Vedanidhi stole the ornament and gave it to a dancing-girl.
It so happened that the king was watching a dance performed by the dancing-girl and he noticed the bangle on the girl's hand. He found out from the girl that the bangle had been given to her by Vedanidhi. He retrieved the bangle and called the brahmana. Do you remember the golden bangle that I had give you? said the king. Can you please return it to me? I need it.
The brahmana hurried home and asked his wife for the bangle. But it could not be found and they realized that it was Vedanidhi who had stolen it. Vedanidhi was banished from his parents' house.
He wandered around here and there and begged food so that he might eat. One day, he did not get any food at all. That day happened to be shivaratri. But Vedanidhi didn't know this. He saw several people going to Shiva's temple with all sorts of offerings, including food, in their hands.
The evil brahmana thought that he might be able to steal and eat this food. He followed the devotees to the temple and waited till they should fall asleep.
When they did so, Vedanidhi crept up to the place where the offerings had been placed. This was right in front of the linga. It was very dark there and Vedanidhi could not see very well. A lamp was burning and the shadow of the lamp fell on the linga. Vedanidhi tore off a piece of cloth from his clothing and stuffed it into the lamp so that it might burn better. The flame rose and the shadow on the linga was removed.
But when Vedanidhi was about to steal the food, the devotees awoke. They gave chase to the thief and shot at him with arrows. These arrow struck Vedanidhi and he died.
Yama's messengers arrived and wanted to take the evil brahmana to hell. But Shiva's companions also arrived and they would not permit Vedanidhi to be taken to hell. The brahmana had fasted on shivaratri day, he stay awake at night and he had removed the shadow from the linga. These were acts of the faithful, even if they had been performed unconsciously. Vedanidhi's sins were all forgiven.