Sunan an-Nasa'i, Book 1, Hadith 204 (Nasa'i 204)

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.'"