The Prophet (ﷺ) offered the funeral prayer for the dead body of a woman who died during…

Sahih al-Bukhari Book 6 Hadith 36

Sahih al-Bukhari #332

Menstrual Periods 6:36

Narrated Samura bin Jundub:

The Prophet (ﷺ) offered the funeral prayer for the dead body of a woman who died during delivery (i.e. childbirth) and he stood by the middle of her body.

Chapter: The offering of a funeral prayer for a woman who had died (or after) delivery and its (i.e., funeral prayer's) legal way of performing

Grade: Sahih