Bhagavad Gita 18.17
He who has no pride and whose intellect is unalloyed by attachment, even though he kills these people, he does not kill them, and his act does not bind him.
यस्य नाहंकृतो भावो बुद्धिर्यस्य न लिप्यते।हत्वापि स इमाँल्लोकान्न हन्ति न निबध्यते॥yasya nāhaṃkṛto bhāvo buddhiryasya na lipyate|hatvāpi sa imām̐llokānna hanti na nibadhyate||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).