Bhagavad Gita 18.9

Chapter 18: Freedom through renunciation

कार्यमित्येव यत्कर्म नियतं क्रियतेऽर्जुन ।
सङ्गं त्यक्त्वा फलं चैव स त्यागः सात्त्विको मतः ॥ ९ ॥

He who performeth a prescribed action, saying, "it ought to be done," O Arjuna, relinquishing attachment and also fruit, that relinquishment is regarded as pure.

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