Shiva Purana
पूर्वजातिषु यो धर्मः श्रुतो गुरुकुलेषु वै ॥ तथैव चास्थिता बुद्धौ संसारेऽप्य निवर्तने ॥ २८॥
Whatever sacred rites they had heard in the preceptor’s hermitage in the previous births were retained in their minds. So also the goal of non-return to this world.
english translation
pUrvajAtiSu yo dharmaH zruto gurukuleSu vai ॥ tathaiva cAsthitA buddhau saMsAre'pya nivartane ॥ 28॥
hk transliteration by Sanscript