The works of Ādi Śaṅkarācārya

Viṣṇusahasranāmastotram

Verse 586

तपसा कल्मषं हन्ति विद्ययामृतमश्नुते ।इति ॥

In plain words

Through tapas the stain is destroyed; through vidyā one reaches the deathless. So it is said.

Close to the Sanskrit

By tapas one destroys impurity; by vidyā one attains the deathless. Thus.