Epictetus said this quote

Freedom is not procured by a full enjoyment of what is desired but by controlling that desire.