It was narrated that Anas said:
"The Messenger of Allah set the time for postnatal bleeding at forty days, except for one who becomes pure before that."
English reference: Vol. 1, Book 1, Hadith 649
Arabic reference: Book 1, Hadith 693
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.