All freedom is a matter of love, because what we love we do freely. That is also why all freedom is a matter of will, because whatever we love we also will to do; and since love and will constitute our life, freedom also constitutes it. This can show us what freedom is, namely, that it is whatever belongs to our love and will and therefore to our life. That is why anything we do freely seems to us to have come from ourselves.
Doing evil freely seems to be freedom but it is slavery, since this freedom comes from our love for ourselves and our love for the world, and these loves come from hell. This kind of freedom actually turns into slavery after we die, too, since anyone who had this kind of freedom becomes a worthless slave in hell afterwards.
In contrast, freely doing what is good is freedom itself because it comes from a love for the Lord and from a love for our neighbor, and these loves come from heaven. This freedom too stays with us after death and then becomes true freedom because anyone who has this kind of freedom is like one of the family in heaven. The Lord says it like this: “Everyone who commits sin is a slave of sin. A slave does not stay in the house forever. A son or daughter does stay forever. If the Son had made you free, you will be truly free” (John 8:34-36).
Since everything good comes from the Lord and everything evil from hell, then it follows that freedom is being led by the Lord and slavery is being led by hell.
from Regeneration, Pages 20-21