Sunan an-Nasa'i #2016
The Book of Funerals 21:200
It was narrated from Sa'd bin Hisham bin 'Amir that his father said:
"Many people were wounded on the day of Uhud and complaints were made to the Messenger of Allah about that. He said: 'Dig graves and make them good and wide, and bury two or three in a grave, and put in first the one who knew the Qur'an most."'