Matsya Purana (Jyotisha Selections) · by Vyasa
Chapter 14 · Dreams
स्वप्नाध्यायः
नागेन्द्रमोक्षश्रवणं ज्ञेयं दुःस्वप्ननाशनम् ।स्वमास्तु प्रथमे यामे सम्वत्सरविपाकिनः ॥ १७ ॥
In the full Matsya Purana this is print ch 241 (standard ch 242), verse 17.
Hearing the story of the freeing of the elephant king is known to end bad dreams. A dream in the night's first yama (three-hour part of the day) bears fruit in a year.
Simple meaning: Hearing the elephant king's story ends bad dreams. A dream in the night's first part bears fruit in a year.
षड्भिर्मासै द्वितीये तु त्रिभिर्मासै स्तृतीयके ।
A dream in the second part of the night bears fruit in six months, the third in three, the fourth in one.
अरुणोदयवेलायां दशाहेन फलम्भवेत् ।
A dream at dawn bears fruit in ten days. Verse 20 says what happens when several come in one night.
पश्चाद्दृष्टस्तु यस्तत्र तस्य पाकं विनिर्दिशेत् ।
If several dreams come in one night, the last gives the result. After a good one, stay awake.