Bahiya reported,

I heard a woman asking Ayesha about a woman whose menstruation had become irregular and who was bleeding continuously. Ayesha replied, "The Messenger of Allah ﷺ instructed me to tell such a woman to consider the number of days she used to menstruate each month when her cycle was regular, then count that same number of days, abstain from prayer during them, then take a full bath, fasten a cloth tightly around herself, and pray."

Abu Dawud 284

Daif

حدثنا موسى بن إسمعيل حدثنا أبو عقيل

عن بهية قالت

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

أبو داود 284ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Purification
Chapter
Those who say when menstruation begins she should leave prayer
Numbering
Darussalam 284
Abu Dawud 284