Sayyiduna Abu Musa (may Allah be pleased with him) narrated that the Messenger of Allah (peace and blessings be upon him) said: "Whoever has a slave-girl and teaches her good manners and gives her good education, then frees her and marries her, has a double reward; and the slave who fulfils the right of Allah and the right of his master will also have a double reward."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النفقات / 15802
Abu Abd al-Rahman al-Sulami (may Allah have mercy on him) said that Ali (may Allah be pleased with him) delivered a sermon and said: "O people, if your slaves commit fornication, establish the prescribed punishments on them in every case. The Prophet (peace and blessings be upon him) had a slave-girl who committed fornication, and he (peace and blessings be upon him) ordered me to flog her. When I went to flog her, she was in post-childbirth bleeding (nifas), so I thought that if I flogged her in this state she would die. I went and told him (peace and blessings be upon him) the whole matter, and he (peace and blessings be upon him) praised me."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النفقات / 15803