Purana Jyotisha Sangraha · by Vyasa
Chapter 14 · Ujjain: Shani and the Planet Tirthas
स्कन्दपुराणम् : अवन्त्यां शनिः ग्रहतीर्थानि च
स्वप्नेश्वरं ततो गच्छेद्भक्तिश्रद्धासमन्वितः ।दर्शनादस्य देवस्य दुःस्वप्नं च विनश्यति ॥ १० ॥
From the Skanda Purana, print Avantya Khanda, Avanti-kshetra-mahatmya ch 23, verse 10.
Then he should go to Svapneshvara with devotion and faith. By seeing this god, a bad dream is destroyed.
Simple meaning: Seeing Svapneshvara is said to take away a bad dream.
स्वेदबिंदुरथो तस्य ललाटादपतद्भुवि ।
A drop of sweat from Shiva's forehead fell to earth and became Mars.
आवन्त्ये विषये जातो लोहितांगो धरासुतः ।
Mars was born in the land of Avanti as Earth's son and Shiva's son.
नामभिर्ब्रह्मणा स्तुत्वा ग्रहमध्येऽधिरोपितः ।
Brahma praised Mars and placed him among the planets. The tirtha Angareshvara rose there.