Epictetus said this quote

Freedom is secured not by the fulfilling of men's desires, but by the removal of desire.