NASAI-KUBRA 7226:
from Ibn ʿAbbās —
[Machine] Narrated Abu Huraira: Allah's Apostle ﷺ said, "When a slave is freed by his master and he has the price of his freedom, he must pay his master the price and keep what remains as his reward in the Hereafter. If a slave is granted freedom by sharing the value of his price with his master, he has to pay his master the share agreed upon, and the rest will be his reward in the Hereafter." Abu 'Abdullah said, "This is the tradition which has been criticized by the scholars."
الكبرى للنسائي ٧٢٢٦:
عن ابن عباس —
عَنِ النَّبِيِّ ﷺ قَالَ «إِذَا أَصَابَ الْمُكَاتِبُ حَدًّا أَوْ مِيرَاثًا وَرِثَ بِحِسَابِ مَا عُتِقَ مِنْهُ وَأُقِيمَ عَلَيْهِ الْحَدُّ بِحِسَابِ مَا عُتِقَ مِنْهُ» قَالَ أَبُو عَبْدِ الرَّحْمَنِ هَذَا لَا يَصِحُّ وَهُوَ مُخْتَلَفٌ فِيهِ
hadithunlocked.com