Command him to take her back, then divorce her when she is pure or she is pregnant.

Sahih Muslim Book 18, Hadith 8