Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
देवदेव महादेव परमेश नमोऽस्तु ते ।उमया सहितश्शंभो स्वामिन्नत्र स्थिरो भव ॥ ४८ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 48.
"God of gods, Mahadeva, Supreme Lord, salutations to you. Shambhu, with Uma, our Lord, stay here steadily."
Simple meaning: The text says the gods asked Shiva to stay there with Uma.
ततश्चन्द्रेण सद्भक्त्या संस्तुतश्शंकरः पुरा ।
The text says Shiva, though formless, took a form for the Moon's devotion.
प्रसन्नश्च स देवानां क्षेत्रमाहात्म्यहेतवे ।
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.