Hisham bin Amir reported,

My father was killed on the day of Uhud, so the Prophet ﷺ said, "Dig the graves wide and deep, do it well, and bury two or three men in a single grave. Place the one who knew the most of the Quran first."My father was one of three placed in a grave together, and since he knew the most Quran among them, he was placed first.

Nasai 2020

Sahih

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

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

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

النسائي 2020صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Who should go first
Numbering
Darussalam 2020
Nasai 2020