One of the wives of the Messenger of Allah ﷺ performed itikaf with him while she was experiencing irregular bleeding. She would see redness and yellowness, and sometimes we would place a basin beneath her while she prayed.
حدثنا قتيبة حدثنا يزيد بن زريع عن خالد عن عكرمة
اعتكفت مع رسول الله ﷺ امرأة من أزواجه مستحاضة فكانت ترى الحمرة والصفرة فربما وضعنا الطست تحتها وهي تصلي