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)
قَالَ رَسُولُ اللهِ ﷺ مَنْ لَايَمَكُمْ مِنْ مَمْلُوكِيكُمْ فَأَطْعِمُوهُ مِمَّا تَأْكُلُونَ وَاكْسُوهُ مِمَّا تَكْتَسُونَ وَمَنْ لَمْ يُلَايِمْكُمْ مِنْهُمْ فَبِيعُوهُ وَلَا تُعَذِّبُوا خَلْقَ اللهِ