It was narrated from 'Aishah that Umm Habibah bint Jahsh used to suffer from Istihadah (non-menstrual vaginal bleeding) for seven years. She asked the Prophet (ﷺ) and he said:
"That is not menstruation, rather it is a vein. Tell her not to pray for the amount of time that her period used to last, then let her perform Ghusl and pray.' She used to perform Ghusl for every prayer.
English reference: Vol. 1, Book 1, Hadith 211
Arabic reference: Book 1, Hadith 212