Moses reveals or at least reviews the "law" in Deuteronomy.
And what wonderful laws they are. Certainly all Jews and Christians alike must adhere to these laws.
For Moses describeth the righteousness which is of the law, that the man which doeth those things (i.e., who follows the Jewish laws described in the torah) shall live by them.
Things like selling your daughter (but not your son) into slavery and by extension, into prostitution for the owner certainly expects to have sex for the female he paid for. Remember, this is the law from God via Moses