Purana Jyotisha Sangraha · by Vyasa
Chapter 14 · Ujjain: Shani and the Planet Tirthas
स्कन्दपुराणम् : अवन्त्यां शनिः ग्रहतीर्थानि च
अष्टम्यां च चतुर्दश्यां देवं स्वप्नेश्वरं शिवम् ।दर्शनं ये करिष्यंति स्नात्वा शिप्राजले शुभे ।आजन्मप्रभवं तेषां दुःस्वप्नंच विनश्यति ॥ ५७ ॥
From the Skanda Purana, print Avantya Khanda, Chaturashiti-linga-mahatmya ch 80, verse 57.
Some will see the god Svapneshvara, Shiva, on the 8th and the 14th tithi (moon day). They bathe first in the Shipra's pure water. Their bad dreams, even those since birth, go away.
Simple meaning: Seeing Svapneshvara after a bath in the Shipra on the 8th or 14th is said to end bad dreams.
इत्युक्तो गुरुणा भूयो वशिष्ठेन महात्मना ।
The king went to Mahakala forest and saw the linga that destroys bad dreams.
नष्टाः सर्वेपि दुःस्वप्नाः सुस्वप्नाश्चाभवंस्तदा ।
His bad dreams ended, and the king went back to Ayodhya and ruled happily.
तदाप्रभृति देवोऽयं सुस्वप्नेश्वरसंज्ञकः ।
From then the god was famous as Susvapneshvara, who destroys all bad dreams.