Purana Jyotisha Sangraha · by Vyasa
Chapter 12 · Prabhasa and the Planet Lingas
स्कन्दपुराणम् : प्रभासक्षेत्रे ग्रहलिङ्गानि
वर्षायुतानि चत्वारि संपूज्य तु विधानतः ।अनन्यचेताः शांतात्मा प्रत्यक्षीकृतवान्भवम् ॥ ४ ॥
From the Skanda Purana, print Prabhasa Khanda (Prabhasa-kshetra-mahatmya) ch 46, verse 4.
He worshipped properly for forty thousand years, with a single mind and a calm heart. He made Bhava appear before him.
Simple meaning: After forty thousand years of worship Shiva appeared before Mercury.
ततस्तुष्टमना देवो ग्रहत्वं तस्य तद्ददौ ।
Shiva made Mercury a planet. Worship here on a Wednesday 8th day is said to give a great reward.
न दाभाग्यं कुले तस्य न चैवेष्टवियोजनम् ।
The text says Mercury's linga keeps misfortune, separation and fear of enemies away.
इति संक्षेपतः प्रोक्तं माहात्म्यं बुधदैवतम् ।
The text says hearing this story with care leads to the highest state.