section 129 · 95 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 the wife of a man has been caught in lying with another male, one shall bind them and throw them into the waters. If the owner of the wife would save his wife or the king would save his servant (he may).