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