Hisham b. ‘Amir told that the Prophet said on the day of Uhud, “Dig graves, make them wide, deep and beautiful, bury two or three together in a single grave, and put first the one who knew most of the Qur’an.”
Ahmad, Tirmidhi, Abu Dawud and Nasa'i transmitted it, and Ibn Majah transmitted up to “beautiful”.