[Machine] A woman used to have excessive bleeding during the time of the Prophet ﷺ, so Umm Salamah, the Prophet's wife, sought his advice for her. The Prophet ﷺ said, "Let her count the number of days and nights that she used to experience menstruation before becoming affected by this condition, and then leave off the prayer for that period of time. And when she becomes pure from that condition, she should perform ghusl (full ablution) and pray."
أَنَّ امْرَأَةً كَانَتْ تُهْرَاقُ الدِّمَاءَ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ فَاسْتَفْتَتْ لَهَا أُمُّ سَلَمَةَ النَّبِيَّ ﷺ فَقَالَ النَّبِيُّ ﷺ «لِتَنْظُرْ عِدَّةَ الْأَيَّامِ وَاللَّيَالِيَ الَّتِي كَانَتْ تَحِيضُ قَبْلَ أَنْ يَكُونَ بِهَا الَّذِي كَانَ وَقَدْرَهُنَّ مِنَ الشَّهْرِ فَتَتْرُكُ الصَّلَاةَ لِذَلِكَ فَإِذَا حَلَفَتْ لِذَلِكَ فَحَضَرَتِ الصَّلَاةُ فَلْتَغْتَسِلْ وَلْتُصَلِّ»