The Catechism of the Catholic Church makes this beautiful statement on freedom:
The more one does what is good, the freer one becomes. There is no true freedom except in the service of what is good and just. The choice to disobey and do evil is an abuse of freedom that leads to ‘the slavery of sin’ [no. 1733].