Atharvaveda Parishishta (Jyotisha Selections) · by Vedic sages (Atharvaveda)
Chapter 20 · Dreams (Svapnadhyaya)
स्वप्नाध्याय
अश्वत्थसेवा तिलपात्रदानं गोस्पर्शनं ब्राह्मणतर्पणं च ।शान्तिक्रिया स्वस्त्ययनक्रिया च दुःस्वप्नमेतानि विनाशयन्ति ॥
In the full Atharvaveda Parishishta this is Parishishta 68, 2.61.
Serving the pipal tree, giving a vessel of sesame, touching a cow and feeding brahmins remove a bad dream. So do a calming rite and a svastyayana (a blessing rite).
Simple meaning: Pipal worship, sesame gifts, touching a cow, feeding brahmins and calming rites are said to remove a bad dream.
वसनकनकदानदेवपूजा गुरुगोष्ठनिषेवितानि कुर्युः ।
Gifts, worship, serving teachers and seeing cows, bulls or kings tend to bring good luck after a bad dream.
इमान्दृष्ट्वाशुभान्स्वप्नान्प्रातरुत्थाय सत्वरः ।
After a bad dream, the text says to rise early and wash the face with water from a river meeting.
हिरण्यवर्णाभिरुदकं शंतातीयमयोभुवा ।
The text says the water is blessed with three named hymns, then the face is wiped with it.