Ayesha reported,

When Saad bin Abu Waqqas died, the wives of the Prophet ﷺ sent word asking that his bier be brought through the mosque so they could pray over him. This was done, and the bier was placed by their chambers so they could pray over it, then it was taken out through the Gate of the Funerals, which led to the seating area.It reached them that people had criticized this, saying, "Funerals were never brought into the mosque."When this reached Ayesha, she said, "How quick people are to criticize what they have no knowledge of! They criticize us for having a bier passed through the mosque, yet the Messenger of Allah ﷺ prayed over Suhayl bin Bayda nowhere but in the heart of the mosque."

Azami 3691

Sahih

عن عبادة بن عبد الله بن الزبير، يحدث عن عائشة

أنها لما توفي سعد بن أبي وقاص أرسل أزواج النبي ﷺ أن يمروا بجنازته في المسجد، فيصلين عليه. ففعلوا. فوقف به على حجرهن يصلين عليه. وأخرج به من باب الجنائز الذي كان إلى المقاعد. فبلغهن أن الناس عابوا ذلك. وقالوا: ما كانت الجنائز يدخل بها المسجد. فبلغ ذلك عائشة فقالت: ما أسرع الناس إلى أن يعيبوا ما لا علم لهم به! عابوا علينا أن يمر بجنازة في المسجد! وما صلى رسول الله ﷺ على سهيل بن بيضاء إلا في جوف المسجد.

الأعظمي 3691صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Prayer over the funeral in the masjid, and its permissibility for women
Numbering
Jami al-Kamil 3691 (2nd edition)
Azami 3691