The Messenger of Allah (ﷺ) would pray at night while I lay by his side during my menstrual period. A sheet of cloth would be partly on me and partly on him.
Sunan Abi Dawud Book 1, Hadith 370