Purana Jyotisha Sangraha · by Vyasa
Chapter 8 · Dreams and Eclipse Rules
ब्रह्मवैवर्तपुराणम् : शुभाशुभस्वप्नाः ग्रहणनियमाश्च
नामान्येतानि भद्राणि जले स्नात्वा च यो जपेत् ।वाञ्छितञ्च लभेत्सोऽपि दुःस्वप्नः शुभवान् भवेत् ॥ ५१ ॥
From the Brahmavaivarta Purana, print Krishna-janma Khanda ch 82, verse 51.
A man who bathes in water and repeats these auspicious names gets what he wishes. His bad dream turns good.
Simple meaning: Repeating these names after a bath is said to bring one's wish and turn a bad dream good.
Classical view, not medical advice.
ओं क्रीं श्रीं क्लीं पूर्वं दुर्गतिनाशिन्यै महामायायै स्वाहा ।
A seventeen-syllable chant to Durga is said to turn a bad dream happy.
शतलक्षजपेनैव मन्त्रसिद्धिर्भवेन्नृणाम् ।
Repeating the chant ten million times is said to bring mastery and every wished success.
ओं नमो मृत्युञ्जयायेति स्वाहान्तं लक्षधा जपेत् ।
Repeating the Mrityunjaya chant a lakh times after a death dream is said to bring a hundred years of life.