Emancipating a Slave who is jointly owned, buying a relative, and emancipating during an illness - Section 1 Mishkat al-Masabih 3391

Arabic hadith text
وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «لَا يَجْزِي وَلَدٌ وَالِده إِلَّا أَن يجده مَمْلُوكا فيشتر بِهِ فيعتقه» . رَوَاهُ مُسلم
Translation

Abu Huraira reported God's Messenger as saying, “A son does not repay what he owes his father unless he buys him and emancipates him if he finds him in slavery.” Muslim transmitted it.