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 53.
"The great fear that comes from bad dreams will go away, without doubt. And the planets will be favourable to you, best of kings."
Simple meaning: Vasishtha says the fear from bad dreams will go and the planets will be favourable.
इत्युक्तो गुरुणा भूयो वशिष्ठेन महात्मना ।
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.