Retiring to a Mosque for Remembrance of Allah (I'tikaf)
كتاب الاعتكاف
Chapter 10: I'tikaf of a woman who has bleeding in between her periods
One of the wives of Allah's Messenger (ﷺ) practiced I`tikaf with him while she ad bleeding in between her periods and she would see red (blood) or yellowish traces, and sometimes we put a tray beneath her when she offered the prayer.
Chapter 11: The visit of the wife to her husband in I'tikaf
The wives of the Prophet (ﷺ) were with him in the mosque (while he was in I`tikaf) and then they departed and the Prophet (ﷺ) said to Safiya bint Huyai, "Don't hurry up, for I shall accompany you," (and her dwelling was in the house of Usama). The Prophet (ﷺ) went out and in the meantime two Ansari men met him and they looked at the Prophet (ﷺ) and passed by. The Prophet (ﷺ) said to them, "Come here. She is (my wife) Safiya bint Huyai." They replied, "Subhan Allah, (How dare we think of evil) O Allah's Apostle! (we never expect anything bad from you)." The Prophet (ﷺ) replied, "Satan circulates in the human being as blood circulates in the body, and I was afraid lest Satan might insert an evil thought in your minds."