Purana Jyotisha Sangraha · by Vyasa
Chapter 4 · Moon at Prabhasa, Mars at Kashi
शिवपुराणम् : कालज्ञानम् उत्पाताः ग्रहक्षेत्राणि च
तद्दृष्ट्वा चरितं शम्भुः कौतुकी सूतिकृत्कृती ।अन्तर्यामी विहस्याथोवाच ज्ञात्वा रसां हरः ॥ २० ॥
From the Shiva Purana, print Rudra Samhita, Parvati Khanda ch 10, verse 20.
Seeing that, Shambhu, who loves play and is the maker of creation, the inner knower, laughed. Knowing Earth, Hara then spoke.
Simple meaning: The text says Shiva laughed at the sight and then spoke to Earth.
धन्या त्वं धरणि प्रीत्या पालयैतं सुतं मम ।
The text says Shiva asked Earth to raise the child born from his sweat.
मम श्रमकभूर्बालो यद्यपि प्रियकृत्क्षिते ।
The text says the child will carry Earth's name and be free from pain.
असौ बालः कुदाता हि भविष्यति गुणी तव ।
The text says Shiva gave the boy to Earth as her own son.