[Machine] On the authority of Umm Salamah, I asked the Messenger of Allah ﷺ, so he said, "Let her count the number of nights and days that she used to menstruate before she had her monthly period. Then let her leave the prayer for the same number of days. When her monthly period ends, let her perform ghusl (ritual bath) and wear a sanitary cloth, then she may pray." It was narrated by Ayoub Al-Sakhtiyani, from Sulayman bin Yasar, from Umm Salamah, except that he mentioned "al-mustahadah" (a woman with abnormal uterine bleeding). Fatimah bint Abi Hubaysh said...
عَنْ أُمِّ سَلَمَةَ سَأَلْتُ رَسُولَ اللهِ ﷺ فَقَالَ لِتَنْظُرْ عَدَدَ اللَّيَالِي وَالْأَيَّامِ الَّتِي كَانَتْ تَحِيضُهُنَّ قَبْلَ أَنْ يَكُونَ لَهَا الَّذِي كَانَ وَقَدْرَهُنَّ مِنَ الشَّهْرِ فَلْتَتْرُكِ الصَّلَاةَ قَدْرَ ذَلِكَ فَإِذَا ذَهَبَ قَدْرُهَا فَلْتَغْتَسِلْ وَلْتَسْتَدْفِرْ بِثَوْبِهَا وَتُصَلِّي وَرَوَاهُ أَيُّوبُ السَّخْتِيَانِيُّ عَنْ سُلَيْمَانَ بْنِ يَسَارٍ عَنْ أُمِّ سَلَمَةَ إِلَّا أَنَّهُ سَمَّى الْمُسْتَحَاضَةَ فِي الْحَدِيثِ فَقَالَ فَاطِمَةُ بِنْتُ أَبِي حُبَيْشٍ