Hisham bin Amir reported,

The wounded were brought to the attention of the Messenger of Allah ﷺ on the day of Uhud, so he said, "Dig the graves, make them wide and well-prepared, and bury two or three men in a single grave, placing the one who knew the most Quran at the front."My father Ubayy died, so he was placed in front of two other men.

Tirmidhi 1713

Sahih

حدثنا أزهر بن مروان البصري حدثنا عبد الوارث بن سعيد عن أيوب عن حميد بن هلال عن أبي الدهماء

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

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

الترمذي 1713صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Jihad
Chapter
Burial of the martyrs
Numbering
Darussalam 1713
Tirmidhi 1713