The murderer knew that he could only marry again after the death of his wife. So he decided to kill her, in order to be free for a second marriage. His theology was correct, but his conclusion lacked a little. Paul has both the right theology and the correct conclusion.
So, my brothers and sisters, you also died to the law through the body of Christ, so that you could be joined to another, to the one who was raised from the dead, to bear fruit to God.
Romans 7:4 NET