If Period Ends Before Fajr, Should You Pray Maghrib and `Isha’?
Question

If my period ends and I do ghusl at night, for example, how should I pray? Should I pray `Isha’ only, or `Isha’ and Maghrib, or the prayers of the entire day? Please note that I do not see the white discharge; rather I wait for one day to find out whether the bleeding has stopped.
Praise be to Allah.If the period ends before fajr, should you pray Maghrib and `Isha’?
If a woman’s period ends after the time for `Isha’ has begun, then she must pray `Isha’ because the time for it has come. At the same time, she must also pray Maghrib because it may be put together with `Isha` when there is a valid reason for doing so.
By the same token, if her period ends after the time for `Asr has begun, she should pray Dhuhr and `Asr. This is what was stated in fatwas by some of the companions of the Prophet (blessings and peace of Allah be upon him) and it is the view of the  majority of the scholars.
But if she becomes pure after Fajr, or after Dhuhr, or after Maghrib, she only has to offer one prayer, which is the prayer at the time of which her period ended (Fajr or Dhuhr or Maghrib), because these prayers cannot be put together with the one that comes before them.
Ibn Qudamah (may Allah have mercy on him) said in Al-Mughni (1/238): If a woman’s period ends before the sun sets, she should pray Dhuhr, then `Asr.
And if her period ends before dawn breaks, she should pray Maghrib and `Isha’. This view was narrated from `Abd Ar-Rahman ibn `Awf, Ibn `Abbas, Tawus, Mujahid, An-Nakha`i, Adh-Dhuhri, Rabi`ah, Malik, Al-Layth, Ash-Shafa`i, Is-haq and Abu Thawr.
Imam Ahmad (may Allah have mercy on him) said: “Most of the Successors  of the Companions (Tabi`un) followed this view, except Al-Hasan only, who said: She only has to offer the prayer at the time of which her period ended. This is the view of Ath-Thawri and As-hab Ar-Ra’i. That is because the time of the first prayer ended when she was still excused, so she does not have to do it, just as if she did not catch up with anything of the time for the second prayer.
It was narrated from Malik that if there is enough of the time of the second prayer left to do five Rak`ahs, then one must offer the first prayer, because the time needed to do the first of those five Rak`ahs is the time for the first prayer when one has a reason or excuse. Therefore the first prayer becomes obligatory, and will be  as if he is doing it at the appropriate time, in contrast to one who does not have enough time to pray five Rak`ahs.
It was narrated by Al-Athram, Ibn Al-Mundhir and others, with their chain of narration from `Abd Ar-Rahman ibn `Awf and `Abdullah ibn `Abbas, that they said regarding the menstruating woman who becomes pure with enough time before the break of dawn to do one Rak`ah: She should pray Maghrib and `Isha’; so if she becomes pure before the sun sets, she should pray Dhuhr and `Asr, putting them together, because the appropriate time for the later prayer is also the appropriate time for the earlier one, when there is a reason to do that. So one who has that reason at that time must offer the first obligatory prayer just as he must offer the second obligatory prayer.” (End quote)
It says in Zad Al-Mustaqni`: “If the prayer becomes obligatory for someone before its time ends, then he must offer that prayer and whatever could be put together with it of the previous prayer.” (End quote)
Shaykh Ibn `Uthaymin (may Allah have mercy on him) said in Ash-Sharh Al-Mumti`:
“An example of that is if there is enough of the time of `Asr left to pray one Rak`ah, or to say the opening Takbir. In that case, he must pray `Asr and he must also pray Dhuhr. Similarly, if there is enough of the time of `Isha’ left, he must pray `Isha’ and also pray Maghrib. And if there is enough of the time of Fajr left, he should only pray Fajr, because it cannot be put together with the prayer that comes before it.
If someone asks: What is the evidence that Dhuhr becomes obligatory in the first scenario and Maghrib becomes obligatory in the second? The answer is that the evidence is based on reports and rational thinking.
With regard to reports: that was narrated from Ibn `Abbas and `Abd Ar-Rahman ibn `Awf (may Allah be pleased with them).
With regard to rational thinking: that is because the time for the later prayer is also the time for the earlier prayer, when there is an excuse that makes it permissible to put the prayers together. As the time for `Asr becomes the valid time for Dhuhr too when there is a reason, then catching up with part of the time (of the second prayer) is like catching up with part of the time of both of them together. This is the well-known view in our madhhab.
Some of the scholars said: He only has to offer the prayer of which he caught up with its time. As for the prayer that came before it, he does not have to offer it.” (End quote)
The shaykh (may Allah have mercy on him) regarded this view as more likely to be correct.
But to be on the safe side, one should follow the view of the majority of scholars, so she should offer both prayers together, and she does not have to offer the prayers of the entire day. If she limits it to the prayer the time of which she caught up with, we hope that that will be fine.
Signs of the end of menses
The woman becomes pure from her menses on the basis of one of two signs: the white discharge or complete dryness, meaning that if she inserts a piece of cotton it will come out clean, with no trace of red or yellow discharge on it, as we explained in the answer to question no. 5595 .
The fact that you wait for one day without praying, because you do not see the white discharge, is not correct, because there is the possibility that you have already become pure, based on dryness. So what you must do is watch for this sign of menses having ended.
An-Nawawi (may Allah have mercy on him) said: “The sign of the end of menses and that the woman has become pure is that bleeding and the yellowish and brownish discharges come to an end. When that ends, the woman becomes pure, regardless of whether any white discharge occurs after that or not.” (End quote from Al-Majmu`  2/562)
And Allah knows best.