He informed him that he had divorced his wife while she was menstruating. Umar mentioned this to the Messenger of Allah ﷺ, and the Messenger of Allah ﷺ became angry about it. Then he said, "Let him take her back and keep her until she becomes pure, then menstruates, then becomes pure again. If he then decides to divorce her, let him divorce her while she is pure, before he has touched her. That is the waiting period as Allah has commanded."
حدثنا يحيى بن بكير حدثنا الليث قال حدثني عقيل عن ابن شهاب قال أخبرني سالم أن
أخبره أنه طلق امرأته وهي حائض فذكر عمر لرسول الله ﷺ فتغيظ فيه رسول الله ﷺ ثم قال ليراجعها ثم يمسكها حتى تطهر ثم تحيض فتطهر فإن بدا له أن يطلقها فليطلقها طاهرا قبل أن يمسها فتلك العدة كما أمر الله عز وجل