Chapter 18 · Liberation through Renunciation · Krishna said
Bhagavad Gita 18.17 — Action free of ego
यस्य नाहंकृतो भावो बुद्धिर्यस्य न लिप्यते। हत्वाऽपि स इमाँल्लोकान्न हन्ति न निबध्यते ॥
yasya nāhaṃkṛto bhāvo buddhiryasya na lipyate | hatvā'pi sa imā.Nllokānna hanti na nibadhyate ||
Meaning
One who has no sense of 'I am the doer' and whose mind is untainted does not truly kill, even if he slays these people, nor is he bound by it.