Deuteronomy 28:40 in the King James Version
Thou shalt have olive trees throughout all thy coasts, but thou shalt not anoint thyself with the oil; for thine olive shall cast his fruit.
Context
39 You will plant vineyards and dress them, but you will neither drink of the wine, nor harvest, because worms will eat them.
40 You will have olive trees throughout all your borders, but you won’t anoint yourself with the oil, for your olives will drop off.
41 You will father sons and daughters, but they will not be yours, for they will go into captivity.