Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ibnmajah:649ʿAbdullāh b. Saʿīd > al-Muḥāribī > Salāam b. Sulaym or Salm Shak Abū al-Ḥasan And ʾAẓunnuh > Abū al-Aḥwaṣ > Ḥumayd > Anas

"The Messenger of Allah set the time for postnatal bleeding at forty days, except for one who becomes pure before that."  

ابن ماجة:٦٤٩حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ حَدَّثَنَا الْمُحَارِبِيُّ عَنْ سَلاَّمِ بْنِ سُلَيْمٍ أَوْ سَلْمٍ شَكَّ أَبُو الْحَسَنِ وَأَظُنُّهُ هُوَ أَبُو الأَحْوَصِ عَنْ حُمَيْدٍ عَنْ أَنَسٍ قَالَ

كَانَ رَسُولُ اللَّهِ ﷺ وَقَّتَ لِلنُّفَسَاءِ أَرْبَعِينَ يَوْمًا إِلاَّ أَنْ تَرَى الطُّهْرَ قَبْلَ ذَلِكَ