Bhagavad Gita 18.17

यस्य नाहंकृतो भावो बुद्धिर्यस्य न लिप्यते।हत्वापि स इमाँल्लोकान्न हन्ति न निबध्यते ॥१८.१७॥

yasya nāhaṃkṛto bhāvo buddhiryasya na lipyatehatvāpi sa imām̐llokānna hanti na nibadhyate

He who is free from the egoistic notion, whose intelligence is not tainted by good or evil, though he slays these people, he does not slay, nor is he bound by the action.

गीता