Hadith.196 – Imam Jafar ibn Muhammad Al-Sadiq عليه السلام narrates that:
It is narrated regarding a woman who sees yellowish discharge: 'If this occurs two days before her menstrual period, it is considered part of her menstruation; if it occurs two days after her menstrual period, it is not considered part of her menstruation.'.
The ghusl (ritual bathing) for janabah (ritual impurity due to sexual discharge) and menstruation is the same, and a menstruating woman should not dye her hair, as it is feared that it may expose her to the influence of the devil.