[Machine] The Prophet ﷺ said, "Whoever frees a slave that he owns, and the slave has the value that reaches his redemption, it is mandatory to include it in the portion of his owner." Al-Bukhari narrated it, as did Ibn Abi Dhi'b, and Muslim reported it from another chain of narrators, also narrated by Ibn Abi Dhi'b.
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ أَعْتَقَ شِرْكًا مَمْلُوكًا وَعِنْدَ الَّذِي أَعْتَقَهُ مَا يَبْلُغُ ثَمَنَهُ ضَمِنَ نَصِيبَ صَاحِبِهِ قَالَ الْبُخَارِيُّ وَرَوَاهُ ابْنُ أَبِي ذِئْبٍ وَأَخْرَجَهُ مُسْلِمٌ مِنْ وَجْهٍ آخَرَ عَنِ ابْنِ أَبِي ذِئْبٍ