Bhagavad Gita 18.17

यस्य नहं कृतो भावो बुद्धिर्यस्य न लिप्यते |
हत्वाऽपि स इमाल्ल्लोकान्न हन्ति न निबध्यते

Translation

Those who are free from the ego of being the doer, and whose intellect is unattached, though they may slay living beings, they neither kill nor are they bound by actions.