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

Chāndogyopaniṣadbhāṣyam

Verse 374

तद्यथेह कर्मजितो लोकः क्षीयत एव-मेवामुत्र पुण्यजितो लोकः क्षीयते तद्यइहात्मानमननुविद्य व्रजन्त्येताँश्च स-त्यान्कामाँस्तेषाँ सर्वेषु लोकेष्वकाम-चारो भवत्यथ य इहात्मानमनुविद्य व्रज-न्त्येताँश्च सत्यान्कामाँस्तेषाँ सर्वेषु

In plain words

Just as a world attained through ritual action perishes here in this life, so too does the world attained through merit perish in the next. Those who depart from this world without realizing the Self and these true desires find their movement restricted in every realm. But those who depart from here having realized the Self and these true desires—for them, across all worlds...

Close to the Sanskrit

Just as here the world won by karma perishes, so also there the world won by merit perishes. Those who depart from here without having known the Self and these true desires, for them there is no freedom of movement in all the worlds. Now, those who depart from here having known the Self and these true desires, for them in all [worlds]...