"A woman asked the Prophet: 'I bleed continuously and I do not become pure. Should I give up the prayer?' He said: 'No, but leave off praying for the number of days and nights that used to menstruate.'" (One of the narrators) Abu Bakr (Ibn Abu Shaibah) said in this Hadith: "Estimate the number of days in the month, then take a bath and cover your private part with a cloth and perform prayer."
سَأَلَتِ امْرَأَةٌ النَّبِيَّ ﷺ قَالَتْ إِنِّي أُسْتَحَاضُ فَلاَ أَطْهُرُ أَفَأَدَعُ الصَّلاَةَ قَالَ لاَ وَلَكِنْ دَعِي قَدْرَ الأَيَّامِ وَاللَّيَالِي الَّتِي كُنْتِ تَحِيضِينَ قَالَ أَبُو بَكْرٍ فِي حَدِيثِهِ وَقَدْرَهُنَّ مِنَ الشَّهْرِ ثُمَّ اغْتَسِلِي وَاسْتَثْفِرِي بِثَوْبٍ وَصَلِّي