"Take what she owes you and let her go." He said: "Yes." And the Messenger of Allah ordered her to wait for one menstrual cycle and then go to her family.
Sunan an-Nasa'i Book 27, Hadith 109