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 7.
The dark half of Chaitra is said to be Yama's, O king. The dark half of the next month Vaishakha is Agni's. The dark half of Jyeshtha is Rudra's. The dark half of Ashadha is called the snakes'.
Simple meaning: The dark half of Chaitra is Yama's, the next is Agni's, Jyeshtha's is Rudra's and Ashadha's belongs to the snakes.
पैत्रश्च श्रावणो मासः सावित्रश्चाप्यनन्तरः ।
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.