Confusion regarding end of menses ( Menstrual Cycle) and periods, Should I offer Prayers ( Salah)
If your menses comes then stops, and the place becomes completely dry, then you have become pure [your menses has ended] and you must fast and pray. You do not have to stay up all night and wait for the white discharge to appear; rather you should not miss prayers for the sake of waiting for that.
But if the place has not become dry, and there is some yellowish or brownish discharge, then you should not be hasty until you become completely dry or the white discharge appears. The women used to send to ‘A’ishah (may Allah be pleased with her) pieces of cotton on which there were traces of yellowish discharge, and she would say to them: Do not be hasty until you see the white discharge. Narrated by al-Bukhari in a mu‘allaq report.
Refer complete answer