It was narrated that 'Aishah said:
"Umm Habibah bint Jahsh suffered Istihadah (non-menstrual vaginal bleeding) for seven years. She complained about that to the Messenger of Allah (ﷺ) and the Messenger of Allah (ﷺ) said: 'That is not menstruation; rather that is (bleeding from) a vein, so perform Ghusl then pray.'" (ES)
English reference (ES): Vol. 1, Book 1, Hadith 203 (ES)
Arabic reference (ES): Book 1, Hadith 204 (ES)