Sunan an-Nasa'i
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّمَا ذَلِكِ عِرْقٌ فَإِذَا أَقْبَلَتِ الْحَيْضَةُ فَدَعِي الصَّلاَةَ وَإِذَا أَدْبَرَتْ فَاغْسِلِي عَنْكِ الدَّمَ ثُمَّ صَلِّي "
It was narrated from Fatimah bint Qais from Banu Asad Quraish that she came to the Prophet (ﷺ) and mentioned that she suffered from Istihadah (non-menstrual vaginal bleeding). She said that he said to her:
"That is (bleeding from) a vein, so when the time of menstruation comes, stop praying, and when it goes, then wash the blood from yourself then pray."
Full reference and source
Sunan an-Nasa'i English : Vol. 1, Book 1, Hadith 201 Arabic : Book 1, Hadith 202
View source on Sunnah.com (opens in a new tab)