Purana Jyotisha Sangraha · by Vyasa
Chapter 12 · Prabhasa and the Planet Lingas
स्कन्दपुराणम् : प्रभासक्षेत्रे ग्रहलिङ्गानि
इति सोमो मतिं कृत्वा तपसाऽऽराधयञ्छिवम् ।यावद्वर्षसहस्रं तु फलमूलाशनोऽभवत् ॥ २८ ॥
From the Skanda Purana, print Prabhasa Khanda (Prabhasa-kshetra-mahatmya) ch 22, verse 28.
With this decision the Moon pleased Shiva by hard austerity. For a thousand years he lived on fruits and roots.
Simple meaning: The Moon did hard austerity for a thousand years, living on fruits and roots.
पूर्णे वर्षसहस्रे तु चतुर्थे वरवर्णिनि ।
After four thousand years Shiva was pleased and spoke to the Moon.
परितुष्टोऽस्मि ते चंद्र वरं वरय सुव्रत ।
Shiva, pleased, asks the Moon to choose a boon.
एवं प्रत्यक्षमापन्नं दृष्ट्वा देवं वृषध्वजम् ।
Seeing Shiva before him, the Moon bowed and sang his praise.