Abu Wa'il (may Allah have mercy on him) also narrates (a report) of the same meaning, that the Prophet (peace and blessings be upon him) "ordered him to take her back until she becomes pure; after that, whether he wishes to divorce or to keep her is up to him."
(b) Nafi' narrates from Ibn Umar (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) "ordered him to take her back until she becomes pure, then menstruates and becomes pure; then if he wishes, he may divorce or keep her."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الخلع والطلاق / 14942