It is narrated from al-Sha'bi (may Allah have mercy on him) that Ali (may Allah be pleased with him) separated the two of them and assigned her the dowry because of what was made lawful of her private parts, and he said: When her 'iddah ends, if she wishes to marry him, she may do so.
Imam al-Shafi'i (may Allah have mercy on him) said: We hold the same as the view of Ali (may Allah be pleased with him).
And Imam al-Bayhaqi (may Allah have mercy on him) said: Umar bin al-Khattab (may Allah be pleased with him) retracted his first view, declared the dowry hers, and allowed the two of them to come together.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15544