Matsya Purana (Jyotisha Selections) · by Vyasa
Chapter 5 · The Moon's Phases and Amavasya
चन्द्रकलाः
पीत्वार्द्धमासं गच्छन्ति अमावास्यां सुराश्च ते ।पितरश्चोपतिष्ठन्ति अमावास्यां निशाकरम् ॥ ६५ ॥
In the full Matsya Purana this is print ch 125 (standard ch 126), verse 65.
After drinking for half a month, the gods go away on the new moon day. The ancestors then wait on the Moon on the new moon day.
Simple meaning: After half a month the gods leave on the new moon day, and then the ancestors attend the Moon.
ततः पञ्चदशे भागे किञ्चिच्छेषे निशाकरे ।
When only a little of the Moon is left, the ancestors drink it after noon, and again next day.
पिवन्ति द्विकलं कालं शिष्टास्तास्तु कलास्तु याः ।
The ancestors drink the last parts of the Moon. On the new moon day the nectar leaves the rays.
अर्द्धमाससमाप्तौ तु पीत्वा गच्छन्ति ते मृतम् ।
At the end of the half month the ancestors drink the nectar and leave. They are the Saumyas, Barhishads and Agnishvattas.