Many ancient Shiva Temples could be witnessed in Kashi. one of them is the Dasaswamedheshwar Temple. The importance of this Temple is mentioned in Kashi Khand.
Legend
To cause King Divodas to abandon the Holy City, Lord Shiva dispatched Lord Brahma to Kashi to stir up trouble in the Kingdom. (Please refer to Divodaseshwar for information.) When Lord Brahma visited King Divodas, he pretended to be an elderly Brahmin. King Divodas gave him a warm welcome and inquired about what might be done to make the visitor (Lord Brahma) more comfortable.
The elderly Brahmin begged that the King make the necessary preparations and supplies so that he might undertake the Aswa Medha Yagna. King Divodas assisted Lord Brahma in performing not one but 10 Aswa Medha Yagnas.
Dasaswamedh Teerth is the name of the location where he conducted these Yagnas (now known as Dasaswamedh Ghat). The location was formerly known as Rudra Sarovar.
Lord Brahma then decided to reside in Kashi and built a Ling named Dasaswamedheshwar. There was nothing wrong with King Divodas that Lord Brahma could detect, and he had nothing to complain to Lord Shiva about. A devotee who bathes in Dasaswamedh Ghat and worships Dasaswamedheshwar is purified of all his sins, according to Kashi Khand (Chapter 52).
Achieving Punya of the highest kind and having all of his sins from the last two generations wiped away are both possible for someone who performs the aforesaid act of worship on the first day after Amavasya in the month of Ashad.
A devotee who bathes in Dasaswamedh Ghat every month from the first to the ninth day following Amavasya and worships Dasaswamedheshwar will always be joyful and experience no rebirth. The eleven days mentioned above in the Jyeshta month are given more significance (June 22-July 21).