Bhagavad Gita 4.21

Chapter 4: Knowledge and the offering of action

निराशीर्यतचित्तात्मा त्यक्तसर्वपरिग्रहः ।
शारीरं केवलं कर्म कुर्वन्नाप्नोति किल्बिषम् ॥ २१ ॥

Hoping for naught, his mind and self controlled, having abandoned all greed, performing action by the body alone, he doth not commit sin.

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