I offered the funeral prayer behind the Prophet (ﷺ) for a woman who had died during childbirth and he stood up by the middle of the coffin.
Sahih al-Bukhari Book 23, Hadith 87