It is narrated from Hazrat Salamah (may Allah be pleased with him) that during a battle, a man committed adultery with his wife's slave-girl. The Prophet (peace and blessings be upon him) said: If he forced the slave-girl into this act, then she will be set free and the man will be liable to give her mistress (his wife) a slave-girl like her. But if this act was done with her consent, then she will become his slave-girl; however, the man will still have to give (his wife) a slave-girl like her.