Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
प्रसन्नश्च स देवानां क्षेत्रमाहात्म्यहेतवे ।चन्द्रस्य यशसे तत्र नाम्ना चन्द्रस्य शंकरः ॥ ५० ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 50.
Pleased, for the glory of this field among the gods. And for the Moon's fame, Shankara took the Moon's name there.
Simple meaning: The text says Shiva took the Moon's name there, for the Moon's fame.
सोमेश्वरश्च नाम्नासीद्विख्यातो भुवनत्रये ।
The text says worship at Someshvara may heal wasting sickness and leprosy.
धन्योऽयं कृतकृत्योऽयं यन्नाम्ना शंकरस्स्वयम् ।
The text says the Moon is blessed because Shiva stays there in his name.
तत्कुण्डं तैश्च तत्रैव सर्वैर्देवैः प्रतिष्ठितम् ।
The text says the gods and Brahma set up the pool there.