When a man takes a wife and marries her, and it comes to pass that she finds no favor in his eyes because he has found in her some uncleanness, and he writes to her a certificate of divorce and puts [it] into her hand and sends her out of his house,