What is the ruling on an oath restricting an agent's or servant's actions if the relationship necessitating the oath is terminated?

Chapter on Explicit Divorce and Others

Al-Mughni

Book of Divorce

Book 39 · Issue 4 · Bab 2

Open in Qurani

Primary text

If a person swears an oath that an agent ('amil') cannot leave without permission, or swears this regarding his wife or slave, and subsequently the agent is dismissed, the wife is divorced (if the oath concerned her), or the slave is sold, two possible legal outcomes exist regarding the oath's continuation or nullification.