"Tell him to take her back, then divorce her while she is pure (not menstruating) or pregnant."
Sunan an-Nasa'i Book 27, Hadith 9