Bhagavad Gita · 5.12
युक्तः कर्मफलं त्यक्त्वा शान्तिमाप्नोति नैष्ठिकीम्।अयुक्तः कामकारेण फले सक्तो निबध्यते॥
yuktaḥ karma-phalaṁ tyaktvā śhāntim āpnoti naiṣhṭhikīm ayuktaḥ kāma-kāreṇa phale sakto nibadhyate
The united one (yogi), having abandoned the fruits of action, attains lasting peace. The one who is not united, driven by desire and attached to results, becomes bound.
— Bhagavad Gita 5.12
Source: Sacred-Texts.com (Sanskrit) + Bhagavad-Gita.io (translations)