It is narrated from Sulayman bin Yasar (may Allah have mercy on him) that Fatimah bint Abi Hubaysh (may Allah be pleased with her) suffered from istihadah (irregular bleeding). She asked the Prophet (peace and blessings be upon him), or he (peace and blessings be upon him) was asked on her behalf, and he (peace and blessings be upon him) commanded her "to leave the prayer during the days of her quru' (menstruation), and at other times to take a bath, bind herself with a cloth, and pray." Sulayman (may Allah have mercy on him) was asked: May her husband have intercourse with her? He said: We only say what we have heard. Abd al-Warith and Hammad bin Zayd (may Allah have mercy on them both) narrated it likewise from Ayyub (may Allah have mercy on him), except that they both mentioned that Umm Salamah (may Allah be pleased with her) sought the ruling on her behalf. Ibrahim bin Isma'il bin Ulayyah (may Allah have mercy on him) took this narration as evidence and claimed that Sufyan bin Uyaynah (may Allah have mercy on him) narrated it from Ayyub (may Allah have mercy on him) in this way. Imam al-Shafi'i (may Allah have mercy on him) said: Sufyan never narrated this.
Rather, Sufyan (may Allah have mercy on him) narrated from Ayyub (may Allah have mercy on him), from Sulayman bin Yasar (may Allah have mercy on him), from Umm Salamah (may Allah be pleased with her), that the Prophet (peace and blessings be upon him) said: "She should leave the prayer for the number of nights and days in which she used to menstruate," or he said: "during the days of her quru'" (the doubt is from Ayyub; it is not known whether he said this or that). So he (Ibrahim) took one of the two in the direction he wanted, and this is not truthful.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15392