Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
दशकोटिमितं मंत्रं समावृत्य शशी च तम् ।ध्यात्वा मृत्युंजयं मंत्रं तस्थौ निश्चलमानसः ॥ ४० ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 40.
The Moon repeated the mantra ten crore times, meditated on Mrityunjaya, and stood with a steady mind.
Simple meaning: The text says the Moon repeated the mantra ten crore times with a steady mind.
तं दृष्ट्वा शंकरो देवः प्रसन्नोऽभूत्ततः प्रभुः ।
The text says Shiva was pleased and appeared before the Moon.
वरं वृणीष्व भद्रं ते मनसा यत्समीप्सितम् ।
The text says Shiva told the Moon to choose any boon.
यदि प्रसन्नो देवेश किमसाध्यं भवेन्मम ।
The text says the Moon asked Shiva to stop the wasting of his body.