Nafi reported,

Ibn Umar divorced his wife while she was menstruating, so Umar asked the Prophet ﷺ about it. He instructed him to take her back, then wait until she menstruated again, then wait until she became pure, then divorce her before touching her. That is the waiting period in accordance with which Allah commanded that women be divorced.Whenever Ibn Umar was asked about a man who divorced his wife while she was menstruating, he would say, "If you have divorced her once or twice, then the Messenger of Allah ﷺ commanded him to take her back, then wait until she menstruated again, then wait until she became pure, then divorce her if he did not wish to keep her. But if you have divorced her three times, then you have disobeyed Allah Almighty in what He commanded you regarding the divorce of your wife, and she is irrevocably separated from you and you from her."

Ahmad 5321

Sahih

حدثنا عبد الوهاب بن عبد المجيد عن أيوب

عن نافع

أن ابن عمر طلق امرأته وهي حائض فسأل عمر النبي ﷺ فأمره أن يراجعها ثم يمهلها حتى تحيض حيضة أخرى ثم يمهلها حتى تطهر ثم يطلقها قبل أن يمسها فتلك العدة التي أمر الله أن تطلق لها النساء وكان ابن عمر إذا سئل عن الرجل يطلق امرأته وهي حائض يقول إما أنت طلقتها واحدة أو اثنتين فإن رسول الله ﷺ أمره أن يراجعها ثم يمهلها حتى تحيض حيضة أخرى ثم يمهلها حتى تطهر ثم يطلقها إن لم يرد إمساكها وإما أنت طلقتها ثلاثا فقد عصيت الله تعالى فيما أمرك به من طلاق امرأتك وبانت منك وبنت منها

أحمد 5321صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Umar
Numbering
Darussalam 5321
Ahmad 5321