Jabir bin Abdullah reported,

The Prophet ﷺ would pair together two men from those slain at Uhud, then ask, "Which of them had memorized more of the Quran?" When one of them was pointed out, he would place him first in the grave. He said, "I will be a witness over these on the Day of Resurrection." He ordered that they be buried in their blood and not washed.

Bukhari 1353

Sahih

حدثنا عبدان أخبرنا عبد الله أخبرنا الليث بن سعد قال حدثني ابن شهاب عن عبد الرحمن بن كعب بن مالك

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

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

البخاري 1353صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Lahd and shaqq in the grave
Numbering
Darussalam 1353
Bukhari 1353