Deuteronomy 24:4

then her former husband who divorced her must not take her back to be his wife after she has been defiled; for that is an abomination before the LORD, and you shall not bring sin on the land which the LORD your God is giving you as an inheritance.