Vishnudharmottara Purana (Jyotisha Selections) · by Vyasa
Chapter 4 · Ayana, Months, Tithis, Karanas, Muhurtas and the Lagna Vargas
अयनमासतिथिकरणमुहूर्ताः लग्नवर्गाश्च
अतः परं प्रवक्ष्यामि यद्देवो यद्ग्रहः स्मृतः ।अग्निरर्कस्स्मृतस्सोमो वरुणः परिकीर्तितः ॥ १० ॥
In the full Vishnudharmottara Purana this is Khanda 1, chapter 83, verse 10.
After this I will say which god belongs to which graha. The Sun's god is said to be Agni. The Moon's god is named as Varuna.
Simple meaning: Next, the god of each planet is given. The Sun's god is Agni and the Moon's god is Varuna.
अङ्गारकः कुमारश्च बुधश्च भगवान्हरिः ।
The gods of the planets: Mars Kumara, Mercury Hari, Jupiter Indra, Venus Parvati.
प्रजापतिश्शनैश्चारो राहुर्ज्ञेयो गणाधिपः ।
Saturn's god is Prajapati, Rahu's is Ganesha and Ketu's is Vishvakarma.
अतः परं प्रवक्ष्यामि तव नक्षत्रदैवताः ।
Krittika belongs to Agni and Rohini to Arkeshvara.