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

Yahya related to me from Malik from Nafi from Sulayman ibnYasarfrom Umm Salama, the wife of the Prophet, may Allah bless him andgrant him peace, that a certain woman in the time of the Messenger ofAllah, may Allah bless him and grant him peace, used to bleedprofusely, so Umm Salama consulted the Messenger of Allah, may Allahbless him and grant him peace, for her, and he said, "She shouldcalculate the number of nights and days a month that she used tomenstruate before it started happening, and she should leave off fromprayerfor that much of the month. When she has completed that sheshould do ghusl, bind her private parts with a cloth, and then pray." Translation Not Available

Book Ref: Muwatta Imam Malik Book 2 Hadith 136
Web Ref:  Muwatta Imam Malik Book 2 Hadith 107