The Prophet ﷺ said regarding the woman experiencing prolonged bleeding that she should abstain from prayer during the days of her usual menstrual period, then perform a full bath, perform ablution before each prayer, and fast and pray.
حدثنا قتيبة حدثنا شريك عن أبي اليقظان
عن النبي ﷺ أنه قال في المستحاضة تدع الصلاة أيام أقرائها التي كانت تحيض فيها ثم تغتسل وتتوضأ عند كل صلاة وتصوم وتصلي
Its isnad is daif. Ibn Majah narrated it in the Book of Purification, chapter on what has been said regarding the woman with prolonged menstrual bleeding whose habit is known, and so on, hadith no. 625, from the hadith of Sharik the judge, from him. Abu Yaqzan is daif and a mudallis narrator, see Taqrib Tahdheeb (4507). It has another version with a different wording in Abu Dawud (297). The hadith has daif corroborating narrations, among them hadith no. 128.