Deuteronomy 24:1

New American Standard Bible (NASB)
“When a man takes a wife and marries her, and it happens [a]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,

Read Deuteronomy 24:1 in other translations