Marry them with the permission of their masters and if they are chaste and have avoided fornication and amorous activities , give them their just dowries . If after marriage they commit adultery , they should receive half of the punishment of a free woman who has committed the same crime .