Bhagavad Gita · 2.51
कर्मजं बुद्धियुक्ता हि फलं त्यक्त्वा मनीषिणः।जन्मबन्धविनिर्मुक्ताः पदं गच्छन्त्यनामयम्॥
karma-jaṁ buddhi-yuktā hi phalaṁ tyaktvā manīṣhiṇaḥ janma-bandha-vinirmuktāḥ padaṁ gachchhanty anāmayam
The wise, united with wisdom, renouncing the fruits of action, are freed from the bondage of rebirth and attain the state beyond all suffering.
— Bhagavad Gita 2.51
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)