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].
Arabic/English book reference: Book 1, Hadith 352