From Sahih Bukhari (Hadith 2037):
Narrated `Aisha:One of the wives of Allah's Messenger (ﷺ) practiced I`tikaf with him while she had 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
Reference: Bukhari 2037