Many people have stayed in relationships that ranged from friendship to business to marriage to church attendance, and it was the last place they should have stayed.
Staying for the benefit of others is not a good enough reason to stay. God is bigger than divorce – of COURSE, He hates it! He hates that it occurs at all, and He hates what it does to people.
But staying in a toxic relationship for the sake of law isn’t a good enough reason to stay. Ideally, BOTH people in ANY relationship must do the work that is necessary to heal themselves first – the relationship will follow. But if only one person is doing the work, and the other is letting them … then there is nothing to work with.