Chapter 5 · The Yoga of Renunciation · Krishna said
Bhagavad Gita 5.7 — Untouched while acting
योगयुक्तो विशुद्धात्मा विजितात्मा जितेन्द्रियः। सर्वभूतात्मभूतात्मा कुर्वन्नपि न लिप्यते ॥
yogayukto viśuddhātmā vijitātmā jitendriyaḥ | sarvabhūtātmabhūtātmā kurvannapi na lipyate ||
Meaning
One who is steady in yoga, pure in mind, master of self and senses, and who sees his own Self in all beings, is not stained by action even while acting.