Passage
And the LORD said unto Moses, Behold, thou shalt sleep with thy fathers; and this people will rise up, and go a whoring after the gods of the strangers of the land, whither they go to be among them, and will forsake me, and break my covenant which I have made with them.
Nearby Context
Deuteronomy 31:14 And the LORD said unto Moses, Behold, thy days approach that thou must die: call Joshua, and present yourselves in the tabernacle of the congregation, that I may give him a charge. And Moses and Joshua went, and presented themselves in the tabernacle of the congregation.
Deuteronomy 31:15 And the LORD appeared in the tabernacle in a pillar of a cloud: and the pillar of the cloud stood over the door of the tabernacle.
Deuteronomy 31:16 And the LORD said unto Moses, Behold, thou shalt sleep with thy fathers; and this people will rise up, and go a whoring after the gods of the strangers of the land, whither they go to be among them, and will forsake me, and break my covenant which I have made with them.
Deuteronomy 31:17 Then my anger shall be kindled against them in that day, and I will forsake them, and I will hide my face from them, and they shall be devoured, and many evils and troubles shall befall them; so that they will say in that day, Are not these evils come upon us, because our God is not among us?
Deuteronomy 31:18 And I will surely hide my face in that day for all the evils which they shall have wrought, in that they are turned unto other gods.
Study Lenses
The verse centers on "lord", "said", "moses", "behold", "thou", "shalt", "sleep", and "fathers". It is saying that the verse draws attention to "lord" and "said", so its meaning should be read from those terms before moving to application.
The nearby context moves from verse 15's "And the LORD appeared in the tabernacle..." into verse 17's "Then my anger shall be kindled against...", so "lord" and "said" belong inside that flow. In Deuteronomy context, the local focus is covenant, worship, and faithfulness.
A plain takeaway is to answer the verse's own emphasis on "lord" and "said" with trust shaped by these words, not by a vague optimism outside the passage.