The daughter of Abu Hubaysh said, "Messenger of Allah, I do not become pure. Should I abandon the prayer?"He replied, "No, that is only a vein."Khalid said, in what I recited to him, "It is not menstrual blood. So when menstruation begins, leave the prayer, and when it ends, wash the blood from yourself and pray."
أخبرنا أبو الأشعث قال حدثنا خالد بن الحارث قال سمعت هشام بن عروة عن أبيه
أن بنت أبي حبيش قالت يا رسول الله إني لا أطهر أفأترك الصلاة قال لا إنما هو عرق قال خالد فيما قرأت عليه وليست بالحيضة فإذا أقبلت الحيضة فدعي الصلاة وإذا أدبرت فاغسلي عنك الدم وصلي
Bukhari transmitted it in the chapter on Menstruation, section on Prolonged Bleeding, hadith no. 306, and Muslim, see hadith no. 333, from the hadith of Hisham with this chain, and it is in Al-Kubra, hadith no. 224.