Hisham bin Amir reported,

The Messenger of Allah ﷺ said, "Dig the graves well and deep, and bury two or three together, placing the one with the most knowledge of the Quran at the front."

Nasai 2019

Sahih

أخبرنا إبراهيم بن يعقوب قال حدثنا مسدد قال حدثنا عبد الوارث عن أيوب عن حميد بن هلال عن أبي الدهماء

عن هشام بن عامر

أن رسول الله ﷺ قال احفروا وأحسنوا وادفنوا الاثنين والثلاثة وقدموا أكثرهم قرآنا

النسائي 2019صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Funerals
Chapter
Burying multiple people in a single grave
Numbering
Darussalam 2019
Nasai 2019