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 8.
The dark half of the month Shravana is the ancestors'. The next one Bhadrapada is Savitri's. The month Ashvayuj is Mitra's. The month whose god is Agni Kartika is Indra's.
Simple meaning: The dark halves of Shravana, Bhadrapada, Ashvayuj and Kartika belong to the ancestors, Savitri, Mitra and Indra.
तथा च नैर्ऋतः सौम्यः पौषः स्याद्विष्णुदैवतः ।
The dark halves of Margashirsha, Pausha, Magha and Phalguna belong to Nirriti, Vishnu, Varuna and Pushan.
अतः परं प्रवक्ष्यामि यद्देवो यद्ग्रहः स्मृतः ।
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.