Purana Jyotisha Sangraha · by Vyasa
Chapter 14 · Ujjain: Shani and the Planet Tirthas
स्कन्दपुराणम् : अवन्त्यां शनिः ग्रहतीर्थानि च
स्वेदबिंदुरथो तस्य ललाटादपतद्भुवि ।तस्मादंगारको जातो रक्तमाल्यानुलेपनः ॥ ४० ॥
From the Skanda Purana, print Avantya Khanda, Avanti-kshetra-mahatmya ch 37, verse 40.
Then a drop of sweat fell to the earth from his forehead. From it Mars was born, wearing red garlands and red paste.
Simple meaning: 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.
ब्रह्मणा स्थापितं लिंगं गणगंधर्वसेवितम् ।
Brahma set up a linga there. The text goes on to the reward for bathing there on a Tuesday.