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 Sahih al-Bukhari 332
Translation
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.