You could do it to your wife/wives and female slaves.
I won’t get into the argy-bargy of “rape of spouses.” Beating a spouse would be considered a no-no, though. (Islam never glommed onto that idea.)
Female slaves... you’d at the least have to marry them first, and polygamy wasn’t a big deal at first.