Deuteronomy 28:40

40 You will have olive trees throughout your territory but not anoint yourself with oil, because your olives will drop off.

Deuteronomy 28:40 Meaning and Commentary

Deuteronomy 28:40

Thou shalt have olive trees throughout thy coasts
In the several parts of the land of Canaan, which is therefore called a land of olive oil, ( Deuteronomy 8:8 ) ;

but thou shalt not anoint [thyself] with the oil;
nor any other relations, friends, guests, as was usual at entertainments; see ( Psalms 23:5 ) ( Luke 7:38 Luke 7:46 ) ; for the phrase "thyself" is not in the text. The reason why they should not anoint is, because they would have no oil to anoint with:

for thine olive shall cast [his fruit];
before it is ripe, by one means or another, as by winds, or blasting and mildew; see ( Amos 4:9 ) ( Habakkuk 3:17 ) .

Deuteronomy 28:40 In-Context

38 "You will sow much seed in the field but harvest little, because locusts will devour it.
39 You will plant and cultivate vineyards but not drink the wine or gather [the grapes], because worms will eat them.
40 You will have olive trees throughout your territory but not anoint yourself with oil, because your olives will drop off.
41 You will father sons and daughters, but they will not remain yours, because they will be taken prisoner.
42 Whirring insects will take possession of all your trees and your land's produce.
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.