Bulugh al-Maram 140
وَعَنْ حَمْنَةَ بِنْتِ جَحْشٍ قَالَتْ: كُنْتُ أُسْتَحَاضُ حَيْضَةً كَبِيرَةً شَدِيدَةً, فَأَتَيْتُ النَّبِيَّ - صلى الله عليه وسلم - أَسْتَفْتِيهِ, فَقَالَ: «إِنَّمَا هِيَ رَكْضَةٌ مِنَ الشَّيْطَانِ, فَتَحَيَّضِي سِتَّةَ أَيَّامٍ, أَوْ سَبْعَةً, ثُمَّ اغْتَسِلِي, فَإِذَا اسْتَنْقَأْتِ فَصَلِّي أَرْبَعَةً وَعِشْرِينَ, أَوْ ثَلَاثَةً وَعِشْرِينَ, وَصُومِي وَصَلِّي, فَإِنَّ ذَلِكَ يُجْزِئُكَ, وَكَذَلِكَ فَافْعَلِي كَمَا تَحِيضُ النِّسَاءُ, فَإِنْ قَوِيتِ عَلَى أَنْ تُؤَخِّرِي الظُّهْرَ وَتُعَجِّلِي الْعَصْرَ, ثُمَّ تَغْتَسِلِي حِينَ تَطْهُرِينَ وَتُصَلِّينَ الظُّهْرَ وَالْعَصْرِ جَمِيعًا, ثُمَّ تُؤَخِّرِينَ الْمَغْرِبَ وَتُعَجِّلِينَ الْعِشَاءِ, ثُمَّ تَغْتَسِلِينَ وَتَجْمَعِينَ بَيْنَ الصَّلَاتَيْنِ, فَافْعَلِي. وَتَغْتَسِلِينَ مَعَ الصُّبْحِ وَتُصَلِّينَ». قَالَ: «وَهُوَ أَعْجَبُ الْأَمْرَيْنِ إِلَيَّ». رَوَاهُ الْخَمْسَةُ إِلَّا النَّسَائِيَّ, وَصَحَّحَهُ التِّرْمِذِيُّ, وَحَسَّنَهُ الْبُخَارِيُّ.
From Hamnah bint Jahsh, who said: I used to have prolonged bleeding, heavy and severe, so I came to the Prophet ﷺ to ask him for a ruling. He said: "It is only a kick from Shaytan. So count yourself as menstruating for six or seven days, then bathe; and when you have become clean, pray for twenty-four or twenty-three [days], and fast and pray, for that will suffice you. Do likewise [every month], as women menstruate. And if you are able to delay Zuhr and bring ʿAsr forward, then bathe when you become pure and pray Zuhr and ʿAsr together, then delay Maghrib and bring ʿIshaʾ forward, then bathe and combine the two prayers, then do so. And bathe with Subh and pray." He said: "And that is the more pleasing of the two matters to me." Narrated by the Five except an-Nasaʾi, and at-Tirmidhi graded it sahih, and al-Bukhari graded it hasan.