It is narrated from the wife of the Prophet ﷺ, Umm Salamah (may Allah be pleased with her), that during the time of the Messenger of Allah ﷺ, a woman used to experience excessive bleeding. Umm Salamah (may Allah be pleased with her) asked the Messenger of Allah ﷺ about her issue, so he ﷺ said: "Estimate the number of nights and days she used to have menstruation before this illness of istihada, and leave prayers for that many days in the month. When that time passes, she should perform ghusl, then tie a cloth and perform the prayers."
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 108
Hadith Takhrijاسناده ضعیف لانقطاعه فان سليمان بن يسار لم يسمع من ام سلمة. اخرجه أبو داود: الطهارة، باب في المرأة تستحاض ومن قال : تدع الصلاة فى عدة الايام التي كانت تحيض: (274) - وابن ماجة ، الطهارة، باب ماجاء في المستحاضة التي قد عدت أيام اقرائها قبل ان يستمر بها الدم: (623) - والنسائي الطهارة، باب ذكر الاغتسال من الحيض: (209).