Hadith 6

Bulugh al-Maram

Book 7: Business Transactions
وَعَنْهُ قَالَ: { أَعْتَقَ رَجُلٌ مِنَّا عَبْداً لَهُ عَنْ دُبُرٍ لَمْ يَكُنْ لَهُ مَالٌ غَيْرُهُ.‏ فَدَعَا بِهِ اَلنَّبِيُّ ‏- صلى الله عليه وسلم ‏-فَبَاعَهُ } مُتَّفَقٌ عَلَيْهِ 1‏ .‏
[Jabir bin 'Abdullah (RA)]:

A man among us declared that a slave belonging to him would be free after his death. However, he had no other property. So, the Prophet (ﷺ) sent for him (the slave) and sold him. [Agreed upon].