Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
आगत्य च तदा सर्वे चन्द्रायाशिषमब्रुवन् ।शिवं नत्वा करौ बद्ध्वा प्रार्थयामासुरादरात् ॥ ४७ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 47.
Coming then, they all spoke blessings to the Moon. They bowed to Shiva, folded their hands, and asked him with respect.
Simple meaning: The text says the gods blessed the Moon and respectfully asked Shiva.
देवदेव महादेव परमेश नमोऽस्तु ते ।
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.