Mishkat al-Masabih 3392
Jabir said that a man of the Ansar declared that a slave would be free after his death, but he had no other property, so when the Prophet heard of that he said, “Who will buy him from me ?” and Nu'aim b. an-Nahham bought him for eight hundred dirhams. A version by Muslim says Nu'aim b. ‘Abdallah al-‘Adawi bought him for eight hundred dirhams which he brought to the Prophet who, when he had handed them over to the man, said, “Spend first on yourself giving yourself sadaqa:
if anything is left over give it to your family; if anything is left over when they have received something, give it to your relatives; and if anything is left over when they have received something, do thus and thus,” meaning that it should be distributed in front of him, on his right and on his left.

(Bukhari and Muslim.)
وَعَنْ جَابِرٍ: أَنَّ رَجُلًا مِنَ الْأَنْصَارِ دَبَّرَ مَمْلُوكًا وَلَمْ يَكُنْ لَهُ مَالٌ غَيْرُهُ فَبَلَغَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ: «مَنْ يَشْتَرِيهِ مني؟» فَاشْتَرَاهُ نعيم بن النَّحَّامِ بِثَمَانِمِائَةِ دِرْهَمٍ. مُتَّفَقٌ عَلَيْهِ. وَفِي رِوَايَةٍ لِمُسْلِمٍ: فَاشْتَرَاهُ نُعَيْمُ بْنُ عَبْدِ اللَّهِ الْعَدَوِيُّ بثمانمائة دِرْهَم فجَاء بِهَا إِلَى النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَدَفَعَهَا إِلَيْهِ ثُمَّ قَالَ: «ابْدَأْ بِنَفْسِكَ فَتَصَدَّقْ عَلَيْهَا فَإِنْ فَضَلَ شَيْءٌ فَلِأَهْلِكَ فَإِنْ فَضَلَ عَنْ أَهْلِكَ شَيْءٌ فَلِذِي قَرَابَتِكَ فَإِنْ فَضَلَ عَنْ ذِي قَرَابَتِكَ شَيْءٌ فَهَكَذَا وَهَكَذَا» يَقُولُ: فَبين يَديك وَعَن يَمِينك وَعَن شمالك