Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
विज्ञापिताश्च चन्द्रेण सर्वे शक्रादयस्सुराः ।ऋषयंश्च वसिष्ठाद्या ब्रह्माणं शरणं ययुः ॥ २१ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 21.
The Moon appealed to them all, to Indra and the gods and to the sages led by Vasishtha. They went to Brahma for shelter.
Simple meaning: The text says the gods and sages took the Moon's trouble to Brahma.
गत्वापि तु तदा प्रोचुस्तद्वृत्तं निखिलं मुने ।
The text says the gods and sages told Brahma the whole story.
ब्रह्मापि तद्वचश्श्रुत्वा विस्मयं परमं ययौ ।
The text says Brahma was amazed and began to speak.
अहो कष्टं महज्जातं सर्वलोकस्य दुःखदम् ।
The text says Brahma called the curse a great trouble for the worlds.