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

Sanatsujātīyam

p. 220

p. 220

गत्वोभयं कर्मणा भुज्यतेऽस्थिरं

In plain words

Having arrived at either destination, what one tastes there — earned by karma, consumed by karma — never lasts.

Close to the Sanskrit

Having gone to both, by action the impermanent is enjoyed.