Umm Salama bint Abu Umaya reported,

A woman was experiencing continuous bleeding during the time of the Messenger of Allah ﷺ. Umm Salama sought a ruling on her behalf from the Messenger of Allah ﷺ, and he said, "Let her observe the number of nights and days during the month in which she used to menstruate before this affliction came upon her, and let her abstain from prayer for that portion of the month. Once that period has passed, let her perform the ritual bath, then secure herself with a cloth, and then pray."

Azami 1533

Sahih

عن أم سلمة زوج النبي ﷺ

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

الأعظمي 1533صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Menstruation
Section
She who has istihadah performs ghusl for every prayer
Numbering
Jami al-Kamil 1533 (2nd edition)
Azami 1533