Bhagavad Gita 5.12
Having abandoned the fruit of action, he wins eternal peace. Others, unacquainted with spirituality, led by desire and clinging to the benefit they think will follow their actions, become entangled in them.
युक्तः कर्मफलं त्यक्त्वा शान्तिमाप्नोति नैष्ठिकीम्।
अयुक्तः कामकारेण फले सक्तो निबध्यते॥yuktaḥ karmaphalaṃ tyaktvā śāntimāpnoti naiṣṭhikīm|
ayuktaḥ kāmakāreṇa phale sakto nibadhyate||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).