Purana Jyotisha Sangraha · by Vyasa
Chapter 13 · Kashi: Planet and Nakshatra Lingas
स्कन्दपुराणम् : काश्यां ग्रहनक्षत्रलिङ्गानि लोलार्कश्च
सलब्धतेजा भगवान् ब्रह्मणा वर्धितः स्वयम् ।तपस्तेपे महाभाग पद्मानां दशतीर्दश ॥ २४ ॥
From the Skanda Purana, print Kashi Khanda (Purvardha) ch 14, verse 24.
The Moon had gained his glow and was raised by Brahma himself. O blessed one, he did austerity for ten times ten padmas.
Simple meaning: The Moon, raised by Brahma, did long austerity.
अविमुक्तं समासाद्य क्षेत्रं परमपावनम् ।
He set up the Chandreshvara linga in Avimukta, named after himself.
बीजौषधीनां तोयानां राजाभूदग्रजन्मनाम् ।
By Shiva's grace the Moon became king of seeds, herbs, waters and Brahmins.
तत्र कूपं विधायैकममृतोदमिति स्मृतम् ।
Drinking and bathing in the Amritoda well is said to free a person from ignorance.