Śrīmad-Bhāgavatam · Text 8.12.35
Who is speaking and story frame
स्कन्ने रेतसि सोऽपश्यदात्मानं देवमायया । जडीकृतं नृपश्रेष्ठ सन्न्यवर्तत कश्मलात् ॥ ३५ ॥
skanne retasi so ’paśyad
ātmānaṁ deva-māyayā
jaḍīkṛtaṁ nṛpa-śreṣṭha
sannyavartata kaśmalāt
O Mahārāja Parīkṣit, best of kings, when Lord Śiva had fully discharged semen, he could see how he himself had been victimized by the illusion created by the Supreme Personality of Godhead. Thus he restrained himself from any further māyā.
Read Śrīla Prabhupāda's purport on Vedabase.io