It is true that Malachi 2:16 says that “God hates divorce.” But the passage doesn’t say He hates divorce in any and every circumstance.
God isn’t making a blanket statement that condemns every divorce in every situation. As with everything else, we must understand what God said in context. He was specifically referring to the practice of some Jewish men of Malachi’s day who divorced their innocent wives and married women from foreign countries (Ezra 9-10; Nehemiah 13:23-27). To these men, the decision to divorce their wives was simply a matter of personal preference and directly against what God commanded (Ezra 9:12). Through the prophet Malachi, God was condemning their selfish and rebellious actions and encouraging them to be faithful to their Jewish wives. Incidentally, the prophet Ezra actually demanded these Jewish men to divorce their foreign wives, showing that God’s statement in Malachi does not condemn all divorce (Ezra 10:11).
God’s ideal is for marriage to last a life time. And while divorce is often wrong (like in the context of the book of Malachi), God recognized it can be necessary because the hearts of men can become calloused and hard. To read about the times and conditions under which God allows for divorce, check out the Discovery Series booklets When a Spouse Is Unfaithful, When Violence Comes Home , and God’s Protection of Women .