(a) It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that in the time of the Prophet (peace and blessings be upon him) a woman kept bleeding. Umm Salamah (may Allah be pleased with her) asked the Messenger of Allah (peace and blessings be upon him) on her behalf, and he (peace and blessings be upon him) said: "Let her look at the number of days and nights in the month during which she used to menstruate before, and let her abandon the prayer for that amount of the month. When she has passed that, let her take a ritual bath, bind herself with a cloth, then pray." (b) These are the words of the hadith of Imam al-Shafi'i (may Allah have mercy on him). This same hadith was mentioned by Imam Malik bin Anas in al-Muwatta' and by Imam Abu Dawud in his Sunan.
However, Sulayman bin Yasar did not hear it from Umm Salamah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحيض / 1576