[Machine] About the Prophet ﷺ, it is narrated that he ruled that their freedom is granted upon their masters' death, based on a text. He and others agreed on prohibiting the sale of female slaves, and it is likely that he and others inferred this from some evidence that reached us and was narrated to us from the Prophet ﷺ indicating their freedom. So he and others agreed on prohibiting the sale of female slaves. It is preferable for us to follow their agreement in what they unanimously agreed on before any disagreement arises, along with relying on evidence from the Sunnah. Allah knows best.
عَنِ النَّبِيِّ ﷺ أَنَّهُ حَكَمَ بِعِتْقِهِنَّ بِمَوْتِ سَادَاتِهِنَّ نَصًّا فَاجْتَمَعَ هُوَ وَغَيْرُهُ عَلَى تَحْرِيمِ بَيْعِهِنَّ وَيُشْبِهُ أَنْ يَكُونَ هُوَ وَغَيْرُهُ اسْتَدَلَّ بِبَعْضِ مَا بَلَغَنَا وَرُوِّينَا عَنِ النَّبِيِّ ﷺ مَا يَدُلُّ عَلَى عِتْقِهِنَّ فَاجْتَمَعَ هُوَ وَغَيْرُهُ عَلَى تَحْرِيمِ بَيْعِهِنَّ فَالْأَوْلَى بِنَا مُتَابَعَتُهُمْ فِيمَا اجْتَمَعُوا عَلَيْهِ قَبْلَ الِاخْتِلَافِ مَعَ الِاسْتِدْلَالِ بِالسُّنَّةِ وَاللهُ أَعْلَمُ