Sunan an-Nasa'i, Book 21, Hadith 198 (Nasa'i 2020)

It was narrated that Hisham bin 'Amir said:

"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."'