Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
सर्वं दुष्टेन चन्द्रेण कृतं कर्माप्यनेकशः ।श्रूयतामृषयो देवाश्चन्द्रकृत्यं पुरातनम् ॥ २५ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 25.
"Many deeds were done by the Moon in his wrong-doing. Hear, O sages and gods, the old deed of the Moon."
Simple meaning: The text says Brahma began to recall the Moon's old deed.
बृहस्पतेर्गृहं गत्वा तारा दुष्टेन वै हृता ।
The text says the Moon once took Jupiter's wife Tara.
समाश्रितस्तदा दैत्यान्युद्धं देवैश्चकार ह ।
The text says the Moon fought the gods, then gave Tara back to Jupiter.
तां च गर्भवतीं दृष्ट्वा न गृह्णामीति सोऽब्रवीत् ।
The text says Jupiter first refused Tara, then took her back with difficulty.