The Code of Hammurabi (18th century BC short chronology) prescribes that
If a man has put a spell upon another man and it is not justified, he upon whom the spell is laid shall go to the holy river; into the holy river shall he plunge. If the holy river overcome him and he is drowned, the man who put the spell upon him shall take possession of his house. If the holy river declares him innocent and he remains unharmed the man who laid the spell shall be put to death. He that plunged into the river shall take possession of the house of him who laid the spell upon him.