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

Sanatsujātīyam

p. 210

p. 210

यदा तु शुद्धं निजरूपि सर्वकर्मक्षये ज्ञानमपास्तदोषम् ।

In plain words

But when every action has worn away and knowledge stands there pure, nothing but itself, every flaw thrown off —

Close to the Sanskrit

But when, upon the destruction of all karma, knowledge — pure, having its own form, its flaws cast off —