He divorced his wife while she was menstruating, so Umar sought a ruling from the Messenger of Allah ﷺ and said, "Abdullah has divorced his wife while she was menstruating."He replied, "Order Abdullah to take her back, then keep her until she becomes pure from this menstrual period, then menstruates again. When she becomes pure, if he wishes he may divorce her before having relations with her, and if he wishes he may keep her. This is the waiting period that Allah commanded for the divorce of women."
أخبرنا عبيد الله بن سعيد السرخسي قال حدثنا يحيى بن سعيد القطان عن عبيد الله بن عمر قال أخبرني نافع
أنه طلق امرأته وهي حائض فاستفتى عمر رسول الله ﷺ فقال إن عبد الله طلق امرأته وهي حائض فقال مر عبد الله فليراجعها ثم يدعها حتى تطهر من حيضتها هذه ثم تحيض حيضة أخرى فإذا طهرت فإن شاء فليفارقها قبل أن يجامعها وإن شاء فليمسكها فإنها العدة التي أمر الله عز وجل أن تطلق لها النساء
Reported by Muslim (see the following hadith after this one) (2/1471) from the hadith of Ubaydullah bin Umar, through him, and it is in Al-Kubra, hadith 5582.