Hadith 1007B1

قَالَ مَالِك : لَما بَأْسَ أَنْ يُدْفَنَ الرَّجُلانِ وَالثَّلاثَةُ فِي قَبْرٍ وَاحِدٍ مِنْ ضَرُورَةٍ، وَيُجْعَلَ الْأَكْبَرُ مِمَّا يَلِي الْقِبْلَةَ
Imam Malik, may Allah have mercy on him, said: If two or three people are buried in one grave out of necessity, there is no harm in it, but the eldest among them should be placed closest to the Qiblah.
Hadith Reference موطا امام مالك رواية يحييٰ / كتاب الجهاد / 1007B1
Hadith Takhrij «فواد عبدالباقي نمبر: 21 - كِتَابُ الْجِهَادِ-ح: 49»