section 146 · 112 of 248
The Code of Hammurabi
English, translated by C. H. W. Johns — Johns, The Oldest Code of Laws in the World, Edinburgh, 1903
If a man has espoused a votary, and she has given a maid to her husband and she has borne children, afterwards that maid has made herself equal with her mistress, because she has borne children her mistress shall not sell her for money, she shall put a mark upon her and count her among the maidservants.