Command him ('Abdullah b. 'Umar) to take her back (and keep her) and pronounce divorce when she is purified and she again enters the period of menstruation and she is again purified (after passing the period of menses), and then if he so desires he may keep her and if he desires divorce her (finally) before touching her (without having an intercourse with her), for that is the period of waiting ('ldda) which God, the Exalted and Glorious, has commanded for the divorce of women. (Using translation from Muslim 1471a)
أَنَّهُ طَلَّقَ امْرَأَتَهُ وَهِيَ حَائِضٌ فِي عَهْدِ رَسُولِ اللهِ ﷺ فَسَأَلَ عُمَرُ بْنُ الْخَطَّابِ ؓ رَسُولَ اللهِ ﷺ عَنْ ذَلِكَ فَقَالَ لَهُ رَسُولُ اللهِ ﷺ مُرْهُ فَلْيُرَاجِعْهَا ثُمَّ لِيَتْرُكْهَا حَتَّى تَطْهُرَ ثُمَّ تَحِيضَ ثُمَّ تَطْهُرَ ثُمَّ إِنْ شَاءَ أَمْسَكَ بَعْدُ وَإِنْ شَاءَ طَلَّقَ قَبْلَ أَنْ يَمَسَّ فَتِلْكَ الْعِدَّةُ الَّتِي أَمَرَ اللهُ ﷻ أَنْ يُطَلَّقَ لَهَا النِّسَاءُ وَفِي رِوَايَةِ الشَّافِعِيِّ ثُمَّ لِيُمْسِكْهَا بَدَلَ قَوْلِهِ ثُمَّ لِيَتْرُكْ وَلَمْ يَقُلْ بَعْدُ