The Prophet (ﷺ) used to pray while I used to sleep beside him during my periods (menses)…

Sahih al-Bukhari Book 8 Hadith 165

Sahih al-Bukhari #518

Prayers (Salat) 8:165

Narrated Maimuna:

The Prophet (ﷺ) used to pray while I used to sleep beside him during my periods (menses) and in prostration his garment used to touch me.

Chapter: To offer Salat (prayer) facing a bed occupied by a menstruatng woman

Grade: Sahih