CIC
Canon 1337
Book VI. Penal sanctions in the Church
Penal law
Code of Canon Law
English§ 1. A prohibition against residing in a certain place or territory can affect both clerics and religious. An order to reside in a certain place can affect secular clerics and, within the limits of their constitutions, religious.
§ 2. An order imposing residence in a certain place or territory must have the consent of the Ordinary of that place, unless there is question of a house set up for penance or rehabilitation of clerics, including extra-diocesans.