Bhagavad Gita, Chapter 18, Verse 49
He whose intellect is unattached everywhere, who has subdued his heart, whose desires have fled, he attains by renunciation to the supreme perfection, consisting of freedom from action.
Real freedom here isn't described as escaping action, it's described as acting without being caught by it.
Krishna names this highest perfection as an internal state, unattachment and mastery, achieved while still fully engaged with the world. Real liberation happens within activity, not apart from it.