What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
What is the ruling on brown discharge before the menstrual period? Is it considered part of menstruation (Hayd)?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Dusky discharge (Kudrah), reddish discharge (Humrah), and yellowish discharge (Sufrah) are all considered menstruation (Hayd) if they occur during the time of the menstrual cycle. If their duration exceeds a day and a night, and the period persists from the first sight of the discharge until the cessation of the menstrual blood—provided the total duration does not exceed fifteen days—then all of it is menstruation. However, if the duration exceeds fifteen days, then the discharge is not considered menstruation, but rather chronic irregular bleeding (Istihadah). And Allah the Exalted knows best.
Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
Is prayer nullified by nose bleed?
All praise be to Allah, The Lord of The Worlds. Blood coming out of the nose, or a wound doesn`t nullify prayer regardless of its quantity. And Allah Knows Best.