Just as there is sinless anger (Ephesians 4:26), there is also sinless initiation of divorce (Matthew 19:3-10). God cannot sin, yet, He actively initiated disciplinary divorce with Israel, etc. when there were repeated, long-term unrepented major breaches of the covenant (Jeremiah 3:8; Zechariah 11:10, read also http://biblehub.com/commentaries/zechariah/11-10.htm).
God is a divorcee too! Indeed, God directly confronts and cajoles (in turn) with physical Israel to repent, both pre- and post-divorce. Repeatedly, God forgave them, but, when there were too many repeated sins, and hard-heartedness, finally, there is “divorce”. Not frivolous divorce, but, disciplinary divorce, which is out of love too. There is a certain cut-off point (a point when the covenant is irretrievably broken, resulting in the pronouncement of divorce), and there is a point where there is an offer to enter the New Covenant.
Until and unless there is fruit of repentance (Matthew 3) and true evidence of love (John 8:31ff, cf. v.42), both John the Baptist and Jesus say that those that claim to be children of Abraham are not included in the New Covenant (Romans 11) unless they love Jesus.
* * *
Extract from Divorce and Remarriage in the Church, by David Instone-Brewer
….What defines a broken marriage is broken vows: the vows that marriage partners make to each other in God’s presence. The Old Testament describes God’s relationship with Israel as a marriage that ended in divorce because of Israel’s adultery. So God is a divorcee—and he hates it as much as any victim of divorce. A victim? Yes, God is a victim of divorce, even though He actually carried it out; in the same way, many victims today are actually the ones who initiate proceedings to bring the marriage to an official end. They call in the lawyers to stop the mockery and pain of constant adultery or the anguish of abuse. But as we will see, the Bible does not regard the victim as the sinner. It is the person who is guilty of causing the marriage to break up whom Jesus addresses when he says, “Those whom God has joined, no one should separate.” In other words, His warning is not to the person who finally tidies up the legal mess after the marriage has broken down but to those who would violate their marriage vows and, in so doing, cause the marriage to break up.
Read more here:
Divorcing an Abusive Spouse Is Not a Sin (Russell Moore)
https://www.christianitytoday.com/ct/2022/march-web-only/russell-moore-divorce-marriage-domestic-violence-abuse.html
和家暴的配偶離婚並不是罪
https://www.christianitytoday.com/ct/2023/february-web-only/russell-moore-divorce-domestic-violence-abuse-zh-hans.html
Wayne Grudem Tells Us Why He Changed His Divorce Position
https://www.christianitytoday.com/ct/podcasts/quick-to-listen/wayne-grudem-divorce-abuse-complementarianism.html