What is the ruling if a slave divorces his female slave twice and then both gain freedom, followed by him purchasing her?

Chapter on Divorce by Calculation

Al-Mughni

Book of Divorce

Book 39 · Issue 2 · Bab 3

Open in Qurani

Primary text

If a slave divorces his female slave twice and they both gain freedom, and then he purchases her, she remains unlawful for him. The initial divorce pronouncements govern the matter.