Leviticus 21:14

21:14 He must not marry a widow, a divorced woman, or one profaned by prostitution; he may only take a virgin from his people as a wife.

Leviticus 25:52

25:52 but if only a few years remain until the jubilee, he must calculate for himself in keeping with the remaining years and refund it for his redemption.