Ayub reported,

With this chain of narration, the report states that Umar asked the Prophet ﷺ about that, and he instructed him to take her back until she became pure, then divorce her while pure without having had intercourse with her. He also said that he should divorce her at the beginning of her waiting period.

Muslim 3663

Sahih

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

عن أيوب

بهذا الإسناد وقال في الحديث فسأل عمر النبي ﷺ عن ذلك فأمره أن يراجعها حتى يطلقها طاهرا من غير جماع وقال يطلقها في قبل عدتها

مسلم 3663صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Divorce
Chapter
Prohibition of divorcing a menstruating woman without her consent, and that if one does so the divorce still takes effect and he is commanded to take her back
Numbering
Darussalam 3663
Muslim 3663