The Prophet said: "The woman who experiences irregular non-menstrual bleeding should leave prayer during the days of her period, then she should take a bath, and perform ablution for each prayer, and she should fast and perform the prayer."
عَنِ النَّبِيِّ ﷺ قَالَ الْمُسْتَحَاضَةُ تَدَعُ الصَّلاَةَ أَيَّامَ أَقْرَائِهَا ثُمَّ تَغْتَسِلُ وَتَتَوَضَّأُ لِكُلِّ صَلاَةٍ وَتَصُومُ وَتُصَلِّي