Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
बृहस्पतेर्गृहं गत्वा तारा दुष्टेन वै हृता ।तस्य भार्या पुनश्चैव स दैत्यान्समुपस्थितः ॥ २६ ॥
From the Shiva Purana, print Kotirudra Samhita ch 14, verse 26.
"He went to Jupiter's house and carried off Tara, who was Jupiter's wife. He then went to the demons."
Simple meaning: 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.
यदि गर्भं जहातीह गृह्णामीत्यब्रवीत्पुनः ।
The text says Jupiter agreed to take Tara back if she gave up the child.