كتاب الحيض
3  
The Book of Menstruation
(14)
Chapter: The ghusl and the prayer of a woman who is suffering prolonged vaginal bleeding (istihadah)
(14)
باب الْمُسْتَحَاضَةِ وَغُسْلِهَا وَصَلاَتِهَا ‏
Sahih Muslim 334 e

On the authority of 'A'isha:

Umm Habiba asked the Messenger of Allah (ﷺ) about the blood (which flows beyond the period of menstruation). 'A'isha said: I saw her wash-tub full of blood. The Messenger of Allah (ﷺ) said: Remain away (from prayer) equal (to the length of time) that your menses prevented you. After this (after the period of usual courses) bathe yourself and offer prayer.
وَحَدَّثَنَا مُحَمَّدُ بْنُ رُمْحٍ، أَخْبَرَنَا اللَّيْثُ، ح وَحَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا لَيْثٌ، عَنْ يَزِيدَ بْنِ أَبِي حَبِيِبٍ، عَنْ جَعْفَرٍ، عَنْ عِرَاكٍ، عَنْ عُرْوَةَ، عَنْ عَائِشَةَ، أَنَّهَا قَالَتْ إِنَّ أُمَّ حَبِيبَةَ سَأَلَتْ رَسُولَ اللَّهِ صلى الله عليه وسلم عَنِ الدَّمِ فَقَالَتْ عَائِشَةُ رَأَيْتُ مِرْكَنَهَا مَلآنَ دَمًا فَقَالَ لَهَا رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ امْكُثِي قَدْرَ مَا كَانَتْ تَحْبِسُكِ حَيْضَتُكِ ثُمَّ اغْتَسِلِي وَصَلِّي ‏"‏ ‏.‏
Reference : Sahih Muslim 334e
In-book reference : Book 3, Hadith 81
USC-MSA web (English) reference : Book 3, Hadith 658
  (deprecated numbering scheme)