"The Messenger of Allah set the time for postnatal bleeding at forty days, except for one who becomes pure before that."
Sunan Ibn Majah Book 1, Hadith 383