Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:21371Abū Ṭāhir al-Faqīh > Abū Bakr Muḥammad b. al-Ḥusayn al-Qaṭṭān > Ibrāhīm b. al-Ḥārith al-Baghdādī > Yaḥyá b. Abū Bukayr > Jarīr b. Ḥāzim > Qatādah > al-Naḍr b. Anas > Bashīr b. Nahīk > Abū Hurayrah

[Machine] I heard Abu Hurayrah saying, "The Messenger of Allah ﷺ was asked about a slave who is between two men, and one of them wants to ransom him. He said, 'If the slave is worth his value in property with justice, then the slave should be ransomed based on that. But if the slave does not have any property, then the slave should work and earn until his ransom is paid.'"  

البيهقي:٢١٣٧١أَخْبَرَنَا أَبُو طَاهِرٍ الْفَقِيهُ أنبأ أَبُو بَكْرٍ مُحَمَّدُ بْنُ الْحُسَيْنِ الْقَطَّانُ ثنا إِبْرَاهِيمُ بْنُ الْحَارِثِ الْبَغْدَادِيُّ ثنا يَحْيَى بْنُ أَبِي بُكَيْرٍ ثنا جَرِيرُ بْنُ حَازِمٍ قَالَ سَمِعْتُ قَتَادَةَ يَقُولُ حَدَّثَنِي النَّضْرُ بْنُ أَنَسٍ عَنْ بَشِيرِ بْنِ نَهِيكٍ قَالَ

سَمِعْتُ أَبَا هُرَيْرَةَ ؓ يَقُولُ إِنَّ رَسُولَ اللهِ ﷺ سُئِلَ عَنِ الْعَبْدِ يَكُونُ بَيْنَ رَجُلَيْنِ يُعْتِقُ أَحَدُهُمَا نَصِيبَهُ؟ قَالَ قَدْ عَتَقَ الْعَبْدُ يُقَوَّمُ عَلَيْهِ فِي مَالِهِ قِيمَةَ عَدْلٍ فَإِنْ لَمْ يَكُنْ لَهُ مَالٌ اسْتَسْعَى الْعَبْدُ غَيْرَ مَشْقُوقٍ عَلَيْهِ