Umm Salama bint Abu Umaya reported,

She should count the number of nights and days during which she used to menstruate each month before this condition came upon her, and she should refrain from prayer for that portion of the month. Once that period has passed, she should perform a full bath, then secure herself with a cloth, and then pray.

Nasai 209

Sahih

أخبرنا قتيبة عن مالك عن نافع عن سليمان بن يسار عن أم سلمة تعني أن امرأة كانت تهراق الدم على عهد رسول الله ﷺ فاستفتت لها

أم سلمة رسول الله ﷺ فقال

لتنظر عدد الليالي والأيام التي كانت تحيض من الشهر قبل أن يصيبها الذي أصابها فلتترك الصلاة قدر ذلك من الشهر فإذا خلفت ذلك فلتغتسل ثم لتستثفر ثم لتصلي

النسائي 209صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Purification
Chapter
Periods of purity
Numbering
Darussalam 209
Nasai 209