Vishnudharmottara Purana (Jyotisha Selections) · by Vyasa
Chapter 22 · The Jataka Chapter
जातकाध्यायः
चन्द्रस्य सूर्यबुधौ मित्रे शेषाः समाः ।।
In the full Vishnudharmottara Purana this is Khanda 2, chapter 167, prose part 23.
The Moon's friends are the Sun and Mercury. The rest are neutral.
Simple meaning: The Moon is friends with the Sun and Mercury and neutral to the others.
भौमस्य जीवेन्दूष्णकराः सुहृदः, ज्ञोऽरिः सितार्कजौ समौ ।।
Mars is friends with Jupiter, the Moon and the Sun, an enemy of Mercury, and neutral to Venus and Saturn.
बुधस्य सूर्यसितौ मित्रे, हिमगुः शत्रुः, भौमजीवशनैश्चराः समाः ।।
Mercury is friends with the Sun and Venus, an enemy of the Moon, and neutral to Mars, Jupiter and Saturn.
जीवस्य सूर्येन्दुभौमा मित्राणि, रविसुतो मध्यः, सौम्यसितावरी ।।
Jupiter is friends with the Sun, Moon and Mars, neutral to Saturn, and an enemy of Mercury and Venus.