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

Sanatsujātīyam

p. 258

p. 258

अतीतानागतेभ्यश्च मुक्तश्चेत्स सुखी भवेत् ॥

In plain words

Free of what is gone and what has not yet come — such a person is happy.

Close to the Sanskrit

And if he is freed from things past and things not yet come, he would be happy.