the Messenger of Allah (ﷺ) used to pray while. I was by his side in the state of menstruation. Sometime his cloth would touch me when he prostrated. He would pray on a small mat.
Sunan Abi Dawud Book 2, Hadith 266