Bhagavad Gita 2.51
The sages, guided by pure intellect, renounce the fruits of their actions; and, thus freed from the shackles of rebirth, they attain the highest bliss.
कर्मजं बुद्धियुक्ता हि फलं त्यक्त्वा मनीषिणः।
जन्मबन्धविनिर्मुक्ताः पदं गच्छन्त्यनामयम्॥karmajaṃ buddhiyuktā hi phalaṃ tyaktvā manīṣiṇaḥ|
janmabandhavinirmuktāḥ padaṃ gacchantyanāmayam||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).