Sahih al-Bukhari #2037
Retiring to a Mosque for Remembrance of Allah (I'tikaf) 33:12
Narrated `Aisha:
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.