Riyad as-Salihin, Book 1, Hadith 352 (In-Book)

Jabir (May Allah be pleased with him) reported: After the battle of Uhud, the Prophet arranged the burial of two of the martyrs in one grave. In each case he would ask, "Which one of them had learnt more Qur'an by heart?" Whichever was thus pointed out to him, was placed by him first in the Lahd.[Al- Bukhari].

وعن جابر رضي الله عنه أن النبي صلى الله عليه وسلم كان يجمع بين الرجلين من قتلى أحد يعني في القبر، ثم يقول‏:‏ أيهما أكثر أخذًا للقرآن‏؟‏‏"‏ فإذا أشير له إلى أحدهما قدمه في اللحد‏.‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏

sunnah.com