Bhagavad Gita 4.23

Chapter 4: Knowledge and the offering of action

गतसङ्गस्य मुक्तस्य ज्ञानावस्थितचेतसः ।
यज्ञायाचरतः कर्म समग्रं प्रविलीयते ॥ २३ ॥

Of one with attachment dead, harmonious, with his thoughts established in wisdom, his works sacrifices, all action melts away.

Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.