Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
यज्जातं तत्सुसंजातं नान्यथा भवति ध्रुवम् ।अतः परमुपायं वो वक्ष्यामि शृणुतादरात् ॥ ३२ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 32.
"What has happened has happened, and cannot be otherwise. So now I will tell you a remedy. Listen with care."
Simple meaning: The text says Brahma will now give a remedy.
प्रभासके शुभे क्षेत्रे व्रजेच्चन्द्रस्सदैवतैः ।
The text says Brahma told the Moon to worship Shiva at Prabhasa.
निधायेशं पुरस्तत्र चन्द्रस्तपतु नित्यशः ।
The text says daily penance at Prabhasa will please Shiva and stop the Moon's waning.
इति श्रुत्वा वचस्तस्य ब्रह्मणस्ते सुरर्षयः ।
The text says the gods and sages went back to the Moon and Daksha.