Deuteronomy 24:1
1 If a man marries a woman and she does not please him because he has found something indecent in her, then he may draw up a divorce document, give it to her, and evict her from his house. 2 When she has left him she may go and become someone else’s wife. 3 If the second husband rejects her and then divorces her, gives her the papers, and evicts her from his house, or if the second husband who married her dies, 4 her first husband who divorced her is not permitted to remarry her after she has become ritually impure, for that is offensive to the Lord. You must not bring guilt on the land that the Lord your God is giving you as an inheritance.
Matthew 5:31
29 If your right eye causes you to sin, tear it out and throw it away! It is better to lose one of your members than to have your whole body thrown into hell. 30 If your right hand causes you to sin, cut it off and throw it away! It is better to lose one of your members than to have your whole body go into hell. 31 “It was said, ‘Whoever divorces his wife must give her a legal document.’ 32 But I say to you that everyone who divorces his wife, except for immorality, makes her commit adultery, and whoever marries a divorced woman commits adultery. 33 “Again, you have heard that it was said to an older generation, ‘Do not break an oath, but fulfill your vows to the Lord.’
Notes and References
"... When synchronizing Matthew 5:31–32; 19:3–9 with Deuteronomy 24:1–4 we find certain correspondences and certain divergences. Although we have yet to consider the meanings of ‘erwat dabar and porneia, we may posit that Deuteronomy 24:1 and Matthew 5:32; 19:9 are in harmony. Both do no more than allow a husband to divorce a wife on grounds of ‘erwat dabar–porneia. The question to be more carefully examined is whether these terms represent the same grounds for divorce or whether the latter exegetes the former ..."
Sigal, Phillip The Halakhah of Jesus of Nazareth According to the Gospel of Matthew (p. 111) Society of Biblical Literature, 2007