Shiva Purana
कारागृहगतस्सोपि बहूंश्चाशिक्षयत्तदा ॥ शिवमंत्रं च पूजां च पार्थिवीमृषिसत्तमाः ॥ ४५ ॥
O excellent sages, he taught the mantra of Śiva and the mode of worshipping the earthen phallic image to several of his fellow-prisoners.
english translation
kArAgRhagatassopi bahUMzcAzikSayattadA ॥ zivamaMtraM ca pUjAM ca pArthivImRSisattamAH ॥ 45 ॥
hk transliteration by Sanscript