Sunan Abi Dawud, Book 1, Hadith 303 (Abu Dawud 303)

Muhammad b. 'Uthman asked al-Qasim b. Muhammad about the woman who has a prolonged flow of blood. He replied:

She should abandon prayer during her menstrual period, then wash and pray ; then she should wash during her menstrual period.