The Messenger of Allah ﷺ came upon Hamza on the day of Uhud and stood over him. He saw that his body had been mutilated and said, "Were it not that Safiyya would be grieved, I would have left him so that the wild beasts and birds might devour him, until he would be resurrected on the Day of Judgment from their bellies."Then he called for a striped cloak and shrouded him in it. When it was drawn up over his head, his feet showed, and when it was drawn down over his feet, his head showed.The slain were many and the cloths were few, so a man, two men, or three were shrouded in a single garment, then buried together in one grave. The Messenger of Allah ﷺ would ask about them, "Which of them knew the most of the Quran?" and would place that one toward the qiblah.The Messenger of Allah ﷺ buried them and did not perform the funeral prayer over them.
حدثنا قتيبة حدثنا أبو صفوان عن أسامة بن زيد عن ابن شهاب
أتى رسول الله ﷺ على حمزة يوم أحد فوقف عليه فرآه قد مثل به فقال لولا أن تجد صفية في نفسها لتركته حتى تأكله العافية حتى يحشر يوم القيامة من بطونها قال ثم دعا بنمرة فكفنه فيها فكانت إذا مدت على رأسه بدت رجلاه وإذا مدت على رجليه بدا رأسه قال فكثر القتلى وقلت الثياب قال فكفن الرجل والرجلان والثلاثة في الثوب الواحد ثم يدفنون في قبر واحد فجعل رسول الله ﷺ يسأل عنهم أيهم أكثر قرآنا فيقدمه إلى القبلة قال فدفنهم رسول الله ﷺ ولم يصل عليهم
[Its chain is daif] Abu Dawud narrated it in the Book of Funerals, chapter on washing the martyr, hadith no. 3136, from Qutayba with the same wording, and Hakim graded it sahih (3/196), and Dhahabi agreed with him. However, Zuhri is a mudallis narrator, and this is transmitted with the ambiguous form "an." Still, the hadith has corroborating narrations, such as the hadith of Layth [which will come at no. 3036].