Muwatta Malik, Book 29, Hadith 1214 (In-Book)

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, may Allah bless him and grant him peace, Umar ibn al-Khattab asked the Messenger of Allah, may Allah bless him and grant him peace, about it. The Messenger of Allah, may Allah bless him and grant him peace, 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."

حَدَّثَنِي يَحْيَى، عَنْ مَالِكٍ، عَنْ نَافِعٍ، أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ، طَلَّقَ امْرَأَتَهُ وَهِيَ حَائِضٌ عَلَى عَهْدِ رَسُولِ اللَّهِ صلى الله عليه وسلم فَسَأَلَ عُمَرُ بْنُ الْخَطَّابِ رَسُولَ اللَّهِ صلى الله عليه وسلم عَنْ ذَلِكَ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مُرْهُ فَلْيُرَاجِعْهَا ثُمَّ يُمْسِكْهَا حَتَّى تَطْهُرَ ثُمَّ تَحِيضَ ثُمَّ تَطْهُرَ ثُمَّ إِنْ شَاءَ أَمْسَكَ بَعْدُ وَإِنْ شَاءَ طَلَّقَ قَبْلَ أَنْ يَمَسَّ فَتِلْكَ الْعِدَّةُ الَّتِي أَمَرَ اللَّهُ أَنْ يُطَلَّقَ لَهَا النِّسَاءُ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Book 29, Hadith 53 (USC-MSA)