Hadith no. 1747 (below) is a repeat. Read it here.
Volume 3, Book 33, Number 252:
Narrated Abu Salama bin ‘Abdur-Rahman:
I asked Abu Said Al-Khudri (radiallaahu `anhu), “Did you hear Allah’s Apostle (sallallaahu `alayhi wasallam) talking about the Night of Qadr?” He replied in the affirmative and said, “Once we were in Itikaf with Allah’s Apostle (sallallaahu `alayhi wasallam) in the middle ten days of (Ramadan) and we came out of it in the morning of the twentieth, and Allah’s Apostle (sallallaahu `alayhi wasallam) delivered a sermon on the 20th (of Ramadan) and said, ‘I was informed (of the date) of the Night of Qadr (in my dream) but had forgotten it. So, look for it in the odd nights of the last ten nights of the month of Ramadan. I saw myself prostrating in mud and water on that night (as a sign of the Night of Qadr). So, whoever had been in Itikaf with Allah’s Apostle (sallallaahu `alayhi wasallam) should return for it.’ The people returned to the mosque (for Itikaf). There was no trace of clouds in the sky. But all of a sudden a cloud came and it rained. Then the prayer was established (they stood for the prayer) and Allah’s Apostle (sallallaahu `alayhi wasallam) prostrated in mud and water and I saw mud over the forehead and the nose of the Prophet (sallallaahu `alayhi wasallam).
Narrated ‘Aisha (radiallaahu `anhaa):
One of the wives of Allah’s Apostle (sallallaahu `alayhi wasallam) practiced Itikaf 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.
Shaykh ‘Abd al-‘Azeez ibn Baaz (may Allaah have mercy on him) said:
I’tikaaf is Sunnah for both men and women, because it was proven that the Prophet (peace and blessings of Allaah be upon him) used to observe i’tikaaf during Ramadaan, and finally he settled on i’tikaaf during the last ten days, and some of his wives used to observe i’tikaaf with him, then they observed i’tikaaf after he died. The place for i’tikaaf is the mosque in which prayers in congregation are performed.
The bleeding that’s mentioned in the above narration is istihadha, not menstruation. A woman suffering from istihadha may observe i`tikaaf in the masjid provided she takes measures to keep her clothes and the masjid area clean. Read more on it here.
Hadith no. 305 is a repeat. Read it here.
Once one of the wives of the Prophet did I’tikaf along with him and she was getting bleeding in between her periods. She used to see the blood (from her private parts) and she would perhaps put a dish under her for the blood. (The sub-narrator ‘Ikrima added, ‘Aisha once saw the liquid of safflower and said, “It looks like what so and so used to have.”)
The blood of istihadha has a different color than the period blood. And the precautions that a woman needs to take while experiencing istihadha are mentioned in this Hadith and the one given in reference above. That she should figure out a way to contain this blood and wash it away before each Salah, followed by fresh wudu. I hope it’s clear enough. If you have any questions, please don’t hesitate to ask. :)
Fatima bint Abi Hubaish came to the Prophet and said, “O Allah’s Apostle I get persistent bleeding from the uterus and do not become clean. Shall I give up my prayers?” Allah’s Apostle replied, “No, because it is from a blood vessel and not the menses. So when your real menses begins give up your prayers and when it has finished wash off the blood (take a bath) and offer your prayers.” Hisham (the sub narrator) narrated that his father had also said, (the Prophet told her): “Perform ablution for every prayer till the time of the next period comes.”
How to differentiate between period blood and the blood coming from the vessel? Period blood is deeper in color and has a certain smell to it. And it lasts a few days (according to your routine). A woman experiencing this should not leave Salah the whole month. She should leave Salah only during the days of her period. And for the rest of the days, she should clean her clothes and make fresh wudu before each Salah.