No. It was in the first law book written according to Islamic law. Slapping a captive automatically set them free.
Some of the companions of the prophet were punished for raping their captives. What followed according to the law was the woman was free, the man was punished for adultery (usually death) and was required to pay compensation for the woman.
A man could be intimate with a captive without marrige as the Qur'an states. But this was only possible with conditions, such as that the woman was a believer, that she was not married, that she had passed the waiting period and that she gave her consent.
If she did give consent her position became equal to a wife in the household.
Some of the companions of the prophet were punished for raping their captives. What followed according to the law was the woman was free, the man was punished for adultery (usually death) and was required to pay compensation for the woman.
A man could be intimate with a captive without marrige as the Qur'an states. But this was only possible with conditions, such as that the woman was a believer, that she was not married, that she had passed the waiting period and that she gave her consent.
If she did give consent her position became equal to a wife in the household.