Jabir bin 'Abdullah reported Allah's Messenger (ﷺ) as saying: A brother of yours has died, so stand up and offer prayer over him. So we stood up and drew ourselves up into two rows.
Hadith ReferenceSahih Muslim / The Book of Prayer - Funerals / Hadith: 952