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