Would He understand?

Someone posed me with this question today: if your husband beat your child, would you divorce him? Would God understand even though the Bible says you should only divorce if they cheated or else you would be committing adultery?

This is hypothetical, especially since I’m only 16 and waiting until I’m married to do anything sexual and have children.