Deuteronomy 28:30

Amplified Bible (AMP)
You will be pledged to marry a wife, but another man will be intimate with her [before you]; you will build a house, but you will not live in it; you will plant a vineyard, but you will not use its fruit.

Read Deuteronomy 28:30 in other translations