سَعِيدٌ قَالَ: نا هُشَيْمٌ، قَالَ: أنا أَشْعَثُ بْنُ سَوَّارٍ، قَالَ: نا الشَّعْبِيُّ، أَنَّ سَفِينَةً، غَرِقَتْ بِأَهْلِهَا فَلَمْ يُدْرَ أَيُّهُمْ مَاتَ قَبْلَ صَاحِبِهِ فَأَتَوْا عَلِيًّا فَقَالَ: «وَرِّثُوا كُلَّ وَاحِدٍ مِنْهُمْ مِنْ صَاحِبِهِ»
It is narrated from Ash-Sha'bi (may Allah have mercy on him) that a boat sank along with its passengers and it could not be determined who died first, so people came to Sayyiduna Ali (may Allah be pleased with him), and he said: "Make each one the heir of the other."