Jabir bin Abdullah reported,

The Messenger of Allah ﷺ used to ask about the slain at Uhud, "Which of these two had memorized more of the Quran?" When one of them was pointed out to him, he would place that one first in the grave before his companion.Jabir said, "My father and my uncle were shrouded together in a single cloak."Sulayman bin Kathir said, Zuhri narrated to me, someone who heard Jabir رضي الله عنه narrated to me.

Bukhari 1348

Sahih

وأخبرنا ابن المبارك أخبرنا الأوزاعي عن الزهري

عن جابر بن عبد الله رضي الله عنهما

كان رسول الله ﷺ يقول لقتلى أحد أي هؤلاء أكثر أخذا للقرآن فإذا أشير له إلى رجل قدمه في اللحد قبل صاحبه وقال جابر فكفن أبي وعمي في نمرة واحدة وقال سليمان بن كثير حدثني الزهري حدثني من سمع جابرا رضي الله عنه

البخاري 1348صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Who is placed first in the grave
Numbering
Darussalam 1348
Bukhari 1348