Jabir bin Abdullah reported,

The Prophet ﷺ used to combine two men from those killed at Uhud in a single grave, then he would ask, "Which of them had memorized more of the Quran?" When one of them was indicated, he would place him first in the grave.

Azami 14279

Sahih

عن جابر

أن النبي ﷺ كان يجمع بين الرجلين من قتلى أحد- يعني في القبر- ثم يقول: أيهما أكثر أخذا للقرآن؟ فإذا أشير إلى أحدهما قدمه في اللحد.

الأعظمي 14279صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Etiquette of seeking permission and greetings
Section
People being treated according to their ranks
Numbering
Jami al-Kamil 14279 (2nd edition)
Azami 14279