Two men came to the Messenger of Allah ﷺ who were disputing over their inheritance. They had no evidence except their claim. The Prophet ﷺ then said in a similar way. Thereupon both the men wept and each of them said: This right of mine go to you. The Prophet ﷺ then said: Now you have done whatever you have done ; do divide it up, aiming at what is right, then drew lots, and let each of you consider the other to have what is legitimately his"
أَتَى رَسُولَ اللَّهِ ﷺ رَجُلاَنِ يَخْتَصِمَانِ فِي مَوَارِيثَ لَهُمَا لَمْ تَكُنْ لَهُمَا بَيِّنَةٌ إِلاَّ دَعْوَاهُمَا فَقَالَ النَّبِيُّ ﷺ فَذَكَرَ مِثْلَهُ فَبَكَى الرَّجُلاَنِ وَقَالَ كُلُّ وَاحِدٍ مِنْهُمَا حَقِّي لَكَ فَقَالَ لَهُمَا النَّبِيُّ ﷺ أَمَّا إِذْ فَعَلْتُمَا مَا فَعَلْتُمَا فَاقْتَسِمَا وَتَوَخَّيَا الْحَقَّ ثُمَّ اسْتَهِمَا ثُمَّ تَحَالاَّ