Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
गत्वापि तु तदा प्रोचुस्तद्वृत्तं निखिलं मुने ।ब्रह्मणे ऋषयो देवा नत्वा नुत्वातिविह्वलाः ॥ २२ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 22.
Going there, the sages and gods, very shaken, bowed to Brahma and praised him. They told him the whole matter, O sage.
Simple meaning: 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.
सर्वं दुष्टेन चन्द्रेण कृतं कर्माप्यनेकशः ।
The text says Brahma began to recall the Moon's old deed.