The Prophet ﷺ said: Feed those of your slaves who please you from what you eat and clothe them with what you clothe yourselves, but sell those who do not please you and do not punish Allah's creatures. (Using translation from Abū Dāʾūd 5161)
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ لَاءَمَكُمْ مِنْ خَدَمِكُمْ فَأَطْعِمُوهُمْ مِمَّا تَأْكُلُونَ وَاكْسُوهُمْ مِمَّا تَلْبَسُونَ أَوْ قَالَ تَكْتَسُونَ وَمَنْ لَا يُلَائِمُكُمْ فَبِيعُوهُ وَلَا تُعَذِّبُوا خَلْقَ اللهِ