Bhagavad Gita 18.6
Chapter 18: Freedom through renunciation
एतान्यपि तु कर्माणि सङ्गं त्यक्त्वा फलानि च ।
कर्तव्यानीति मे पार्थ निश्चितं मतमुत्तमम् ॥ ६ ॥
But even these actions should be done leaving aside attachment and fruit, O Pârtha; that is my certain and best belief.
Sanskrit text and English translation: Annie Besant, The Bhagavad-Gita, 4th edition (1922) — public domain, via Wikisource. Chapter summaries: SamayaVeda.