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.
malik:38-8

Malik related to me that he had heard that a slave-girl came to Umar ibn al-Khattab (who had been beaten by her master with a red hot iron) and he set her free. Malik said, "The generally agreed- on way of doing things among us is that a man is not permitted to be freed while he has a debt against him which exceeds his property. A boy is not allowed to be set free until he has reached puberty. The young person whose affairs are managed cannot set free in his property, even when he reaches puberty, until he manages his property."  

مالك:٣٨-٨

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