The Messenger of Allah ﷺ prayed over a woman who had died during childbirth, and he stood by her middle.
حدثنا علي بن محمد حدثنا أبو أسامة قال الحسين بن ذكوان أخبرني عن عبد الله بن بريدة الأسلمي
أن رسول الله ﷺ صلى على امرأة ماتت في نفاسها فقام وسطها
Bukhari narrated it in the chapter on menstruation, in the section on the prayer over a woman who died in childbirth and its sunnah, hadith numbers 332, 1331, and 1332, and Muslim narrated it in the chapter on funerals, in the section on where the imam stands relative to the deceased when praying over him, hadith number 964, both from the hadith of Husayn bin Zakwan the teacher, with this same chain.