13 And this is another thing you do: You cover the altar of the LORD with tears, with weeping and groaning, because He no longer regards your offerings or receives them gladly from your hands. 14 Yet you ask, “Why?” It is because the LORD has been a witness between you and the wife of your youth, against whom you have broken faith, though she is your companion and your wife by covenant. -Malachi 2:13-14 BSB
The phrase “you have broken faith” means acting treacherously toward one’s spouse through betrayal. The moment a man or a woman crosses that line, your “good deeds” for the Lord, will no longer be accepted. Repentance and, as much as possible, reconciliation must be a priority. As long as you are in sin, a spiritual wall has been constructed between you and the Lord. He will not hear your prayers (Isaiah 59:2 “But your iniquities have built barriers between you and your God, and your sins have hidden His face from you, so that He does not hear.”)
When one commits adultery, it will bring upon divorce, and the children will be immensely impacted by it, not just in the physical aspect of it but spiritually. They will eventually become estranged from the Lord because Satan will take that opportunity to ingrain in their minds his lie, how much God has failed them. That is why God hates divorce. It affects the husband, the wife, and the children.
16 “For I hate divorce,” says the LORD, the God of Israel. “He who divorces his wife covers his garment with violence,” says the LORD of Hosts. So guard yourselves in your spirit and do not break faith. -Malachi 2:16 BSB
Don’t destroy your godly progress and work that you have labored so hard for the Lord for a moment of weakness. If you fall, remember, you will destroy not just your character and your walk with God, but your entire household will collapse, bringing devastation to your family.