Sunan Abi Dawud, Book 1, Hadith 284 (USC-MSA) ⓘ
Narrated Aisha, Ummul Mu'minin: Bahiyyah said: I heard a woman asking Aisha about the woman whose menses became abnormal and she had an issue of blood. The Messenger of Allah asked me to advise her that she should consider the period during which she used to menstruate every month, when her menstruation was normal. Then she should count the days equal to the length of time (of her normal menses); then she should abandon prayer during those days or equal to that period. She should then take a bath, tie a cloth on her private parts a pray.
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا أَبُو عَقِيلٍ، عَنْ بُهَيَّةَ، قَالَتْ سَمِعْتُ امْرَأَةً، تَسْأَلُ عَائِشَةَ عَنِ امْرَأَةٍ، فَسَدَ حَيْضُهَا وَأُهَرِيقَتْ دَمًا فَأَمَرَنِي رَسُولُ اللَّهِ صلى الله عليه وسلم أَنْ آمُرَهَا فَلْتَنْظُرْ قَدْرَ مَا كَانَتْ تَحِيضُ فِي كُلِّ شَهْرٍ وَحَيْضُهَا مُسْتَقِيمٌ فَلْتَعْتَدَّ بِقَدْرِ ذَلِكَ مِنَ الأَيَّامِ ثُمَّ لْتَدَعِ الصَّلاَةَ فِيهِنَّ أَوْ بِقَدْرِهِنَّ ثُمَّ لْتَغْتَسِلْ ثُمَّ لْتَسْتَثْفِرْ بِثَوْبٍ ثُمَّ لْتُصَلِّي .
also referenced under: Hadith 284 (DarusSalam) & Hadith 284 (Hasan)