"When the time of menstruation comes, stop praying, and when it goes, perform Ghusl."

Sunan an-Nasa'i Book 3, Hadith 3