His father divorced his wife during her menses, so Umar asked the Prophet about that and he said: "Tell him to take her back, then let him divorce her while she is pure or pregnant."
Jami` at-Tirmidhi Book 13, Hadith 2