Yahya related to me from Malik from Nafi that Abdullah ibn Umar divorced his wife while she was menstruating in the time of the Messenger of Allah ﷺ Umar ibn al-Khattab asked the Messenger of Allah ﷺ about it. The Messenger of Allah ﷺ said, "Go and tell him to take her back and keep her until she is purified and then has a period and then is purified. Then if he wishes, he an keep her, and if he wishes he should divorce her before he has intercourse with her. That is the idda which Allah has commanded for women who are divorced."
أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ طَلَّقَ امْرَأَتَهُ وَهِيَ حَائِضٌ عَلَى عَهْدِ رَسُولِ اللَّهِ ﷺ فَسَأَلَ عُمَرُ بْنُ الْخَطَّابِ رَسُولَ اللَّهِ ﷺ عَنْ ذَلِكَ فَقَالَ رَسُولُ اللَّهِ ﷺ مُرْهُ فَلْيُرَاجِعْهَا ثُمَّ يُمْسِكْهَا حَتَّى تَطْهُرَ ثُمَّ تَحِيضَ ثُمَّ تَطْهُرَ ثُمَّ إِنْ شَاءَ أَمْسَكَ بَعْدُ وَإِنْ شَاءَ طَلَّقَ قَبْلَ أَنْ يَمَسَّ فَتِلْكَ الْعِدَّةُ الَّتِي أَمَرَ اللَّهُ أَنْ يُطَلَّقَ لَهَا النِّسَاءُ