Hadithcore
Sahih al-Bukhari, 2415
sahih

Narrated Jabir:

A man manumitted a slave and he had no other property than that, so the Prophet (ﷺ) canceled the manumission (and sold the slave for him). Nu'aim bin Al-Nahham bought the slave from him.

حَدَّثَنَا عَاصِمُ بْنُ عَلِيٍّ، حَدَّثَنَا ابْنُ أَبِي ذِئْبٍ، عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، عَنْ جَابِرٍ ـ رضى الله عنه ـ أَنَّ رَجُلاً، أَعْتَقَ عَبْدًا لَهُ، لَيْسَ لَهُ مَالٌ غَيْرُهُ، فَرَدَّهُ النَّبِيُّ صلى الله عليه وسلم، فَابْتَاعَهُ مِنْهُ نُعَيْمُ بْنُ النَّحَّامِ‏.‏

References2 variants
In-Book Reference
Book 44, Hadith 6
USC-MSA web (English) reference
Vol. 3, Book 41, Hadith 598 (deprecated numbering scheme)