Deuteronomy 24:1laqach
"When a man takes a wife and marries her, and it happens that she finds no favor in his eyes because he has found some indecency in her, and he writes her a certificate of divorce and puts {it} in her hand and sends her out from his house,
Moses' law describes marriage followed by a certificate of divorce.
1 Corinthians 7:28gameō
But if you marry, you have not sinned; and if a virgin marries, she has not sinned. Yet such will have trouble in this life, and I am trying to spare you.
Paul says marrying is not sin, though it brings troubles.