“These are the words of the covenant, which the LORD commanded Moses to make with the children of Israel in the land of Moab, beside the covenant which he made with them in Horeb.”
Deuteronomy 29:1 KJV
“For the law was given by Moses, but grace and truth came by Jesus Christ.”
John 1:17 KJV
The law given by Moses to israel regarding marriage and divorce
“When a man hath taken a wife, and married her, and it come to pass that she find no favour in his eyes, because he hath found some uncleanness in her: then let him write her a bill of divorcement, and give it in her hand, and send her out of his house. And when she is departed out of his house, she may go and be another man's wife.”
Deuteronomy 24:1-2 KJV
Jesus the lord is asked about it
“And the Pharisees came to him, and asked him, Is it lawful for a man to put away his wife? tempting him.
And he answered and said unto them, What did Moses command you?
And they said, Moses suffered to write a bill of divorcement, and to put her away. ( they are correct about what Moses commanded )
And Jesus answered and said unto them, For the hardness of your heart he wrote you this precept. But from the beginning of the creation God made them male and female.
For this cause shall a man leave his father and mother, and cleave to his wife; and they twain shall be one flesh: so then they are no more twain, but one flesh. What therefore God hath joined together, let not man put asunder. And in the house his disciples asked him again of the same matter. And he saith unto them, Whosoever shall put away his wife, and marry another, committeth adultery against her. And if a woman shall put away her husband, and be married to another, she committeth adultery.”
Mark 10:2-12 KJV
just to point it out moses commanded this in the law
When a man hath taken a wife, and married her, and it come to pass that she find no favour in his eyes, because he hath found some uncleanness in her: then let him write her a bill of divorcement, and give it in her hand, and send her out of his house. And when she is departed out of his house, she may go and be another man's wife.”
and Jesus says plainly
“If anyone shall put away his wife, and marry another, committeth adultery against her. And if a woman shall put away her husband, and be married to another, she committeth adultery.”
The law of Moses is the Old Testament of God to israel. the gospel which Jesus preached and then sent to all people is the New Testament of God . Each testament has a mediator Moses the old and Jesus the new . It’s no longer about Moses commands and ordinances it’s all about the gospel now that for all people to live by