"On the day of Uhud the people were exhausted. The Prophet said: 'Dig graves and make them wide, and bury two or three in a grave.' They said: 'O Messenger of Allah, who should we 'put in first? He said: 'Put in first the one who knew the Qur'an most."' (Using translation from Nasāʾī 2015)
لَمَّا كَانَ يَوْمُ أُحُدٍ أَصَابَ النَّاسَ قَرْحٌ وَجَهْدٌ شَدِيدٌ فَقَالَ رَسُولُ اللهِ ﷺ احْفِرُوا وَأَوْسِعُوا وَادْفِنُوا الِاثْنَيْنِ وَالثَّلَاثَةَ فِي الْقَبْرِ قَالُوا يَا رَسُولَ اللهِ مَنْ نُقَدِّمُ؟ قَالَ أَكْثَرَهُمْ جَمْعًا وَأَخْذًا لِلْقُرْآنِ