Bhagavad Gita 18.23

Chapter 18: Freedom through renunciation

नियतं सङ्गरहितमरागद्वेषतः कृतम् ।
अफलप्रेप्सुना कर्म यत्तत्सात्त्विकमुच्यते ॥ २३ ॥

An action which is ordained, done by one undesirous of fruit, devoid of attachment, without love or hate, that is called pure.

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