A man from the Ansar named Abu Madhkur freed a slave of his named Yaqub by way of tadbir, meaning the slave would be freed upon his master's death, and he had no other property besides him. The Messenger of Allah ﷺ summoned the slave and asked, "Who will buy him?"Naeem bin Abdullah purchased him for eight hundred dirhams, and the Messenger of Allah ﷺ handed the money to Abu Madhkur and said, "When one of you is poor, let him begin with himself. If there is a surplus, then on his dependents. If there is still a surplus, then on his relatives or kin. If there is still a surplus, then here and there."
أخبرنا زياد بن أيوب قال حدثنا إسمعيل قال حدثنا أيوب عن أبي الزبير
أن رجلا من الأنصار يقال له أبو مذكور أعتق غلاما له عن دبر يقال له يعقوب لم يكن له مال غيره فدعا به رسول الله ﷺ فقال من يشتريه فاشتراه نعيم بن عبد الله بثمان مائة درهم فدفعها إليه وقال إذا كان أحدكم فقيرا فليبدأ بنفسه فإن كان فضلا فعلى عياله فإن كان فضلا فعلى قرابته أو على ذي رحمه فإن كان فضلا فها هنا وها هنا
Reported by Muslim, Zakat, Chapter on beginning with spending on oneself, then on one's family, then on relatives, hadith no. 997, from the hadith of Ismail bin Ulaya, with this same chain, and it is also found in Kubra, hadith no. 6249.