Vishnudharmottara Purana (Jyotisha Selections) · by Vyasa
Chapter 22 · The Jataka Chapter
जातकाध्यायः
आदित्यस्य चन्द्राङ्गारकजीवा मित्राणि बुधस्समः शुक्रसौरावरी ।।
In the full Vishnudharmottara Purana this is Khanda 2, chapter 167, prose part 22.
The Sun's friends are the Moon, Mars and Jupiter. Mercury is neutral to it. Venus and Saturn are its enemies.
Simple meaning: The Sun is friends with the Moon, Mars and Jupiter, neutral to Mercury, and an enemy of Venus and Saturn.
चन्द्रस्य सूर्यबुधौ मित्रे शेषाः समाः ।।
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.