In my reading of the Gospel account, the bit about issuing bills of divorce did not come from God. Moses put that in because of the hardness of hearts. The disciples around Jesus were shocked by His teaching and responded if what Jesus teaches on marriage is true, better to not marry.