Hisham bin Amir reported,

The Messenger of Allah ﷺ was informed of the many wounded and slain on the day of Uhud. He said, "Dig the graves, make them wide and well-prepared, and bury two and three men in a single grave. Place the one with the most knowledge of the Quran at the front."The narrator said, "My father died, so he was placed at the front of two other men."In another narration, "My father was killed on the day of Uhud, and the Prophet ﷺ said, 'Dig the graves, make them wide and well-prepared, bury two and three men in one grave, and place the one with the most knowledge of the Quran at the front.' My father was one of three, and he had the most knowledge of the Quran, so he was placed at the front."

Azami 3800

Sahih

عن هشام بن عامر قال

شكي إلى رسول الله ﷺ لجراحات يوم أحد فقال: احفروا وأوسعوا وأحسنوا وادفنوا الاثنين والثلاثة في قبر واحد، وقدموا أكثرهم قرآنا. قال: فمات أبي فقدم بين يدي رجلين. وفي رواية: قتل أبي يوم أحد فقال النبي ﷺ: احفروا وأوسعوا وأحسنوا وادفنوا الاثنين والثلاثة في القبر، وقدموا أكثرهم قرآنا، فكان أبي ثالث ثلاثة، وكان أكثرهم قرآنا فقدم.

الأعظمي 3800صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Graves
Section
Depth of the grave and widening it
Numbering
Jami al-Kamil 3800 (2nd edition)
Azami 3800