The author of Malachi seems to express contradictory ideas when he mentions that the Lord's name shall be great among the Gentiles and the heathen (Mal 1:11). He says, Have we not all one father? Hath not one God created us (Mal 2:10)? The LORD hath been witness between thee and the wife of thy youth, against whom thou hast dealt treacherously: yet is she thy companion, and the wife of thy covenant. And did not he make one? Yet had he the residue of the spirit. And wherefore one? That he might seek a godly seed. Therefore take heed to your spirit, and let none deal treacherously against the wife of his youth. For the LORD, the God of Israel, saith that he hateth putting away (Mal 2:14-16).
But he also says, Judah hath profaned the holiness of the LORD which he loved, and hath married the daughter of a strange god. The LORD will cut off the man that doeth this (Mal 2:11-12).
We all know that Jonathan, Jahaziah, Meshullam and Shabbethai (who were known to be upright men) were opposed to putting these wives away (Ezra 10) although Ezra and Nehemiah both thought it best. Remember me, O my God, for good (Neh 13:31).