Bhagavad Gita, Chapter 18, Verse 17
He who is free from the notion of egoism, whose intelligence is not affected by good or evil, though he kills these people, he kills not, nor is bound by the action.
Even something as serious as killing is described here as not binding, once real ego and attachment are actually gone.
Krishna makes an extreme case to make the point land, real freedom from doership changes the entire moral weight of an action. The absence of ego, not the act itself, is what determines the real outcome.