Deuteronomy 24:3

3 and the latter man hath hated her, and written for her a writing of divorce, and given [it] into her hand, and sent her out of his house, or when the latter man dieth, who hath taken her to himself for a wife: