Deuteronomy 31:21 means that God knew, before Israel ever entered the promised land, that they would turn away from him, and he gave them a song to stand as a witness against their failure. The verse is spoken by the LORD to Moses, who is about to die, and it looks ahead to a time of hardship when the people will remember what they were warned about.
It will happen, when many evils and troubles have come on them, that this song will testify before them as a witness; for it will not be forgotten out of the mouths of their descendants; for I know their ways and what they are doing today, before I have brought them into the land which I swore.”
Deuteronomy 31:21 (WEB)
What Deuteronomy 31:21 Means
The verse opens with a prediction: “It will happen, when many evils and troubles have come on them.” God is not saying that trouble is his desire for Israel. He is saying that the turning away he foresees will bring consequences, and those consequences will open their eyes. The word “happen” signals that the trouble is certain in God’s plan, but it is the people’s own choices that set it in motion.
Next, the verse says the song “will testify before them as a witness” and “will not be forgotten out of the mouths of their descendants.” The song is meant to be memorized and repeated, so that generations will keep hearing God’s faithfulness and their own obligations. The final clause tells us the reason: God knows their hearts and their actions in advance, “before I have brought them into the land.” The verse promises that God’s knowledge is complete and that his word will not fade, but it does not promise that Israel will be spared the consequences of their failure.
The Context of Deuteronomy 31:21
Deuteronomy presents itself as a series of speeches Moses gives to the Israelites on the plains of Moab, just before they cross the Jordan River. The book is traditionally attributed to Moses, though many scholars think it took its final shape later, and the original audience is the generation about to enter Canaan after forty years in the wilderness. The surrounding verses describe Moses writing down the song and teaching it to the people, then commissioning Joshua to lead them. The setting is one of transition, with the old leader passing on both the law and a song of warning.
Reading verse 21 within verses 18 through 24 changes its tone. Verse 18 says God will hide his face because of their idolatry, which is a sober statement of covenant consequences. Verse 23 then ends with God’s assurance to Joshua, “I will be with you.” Verse 21 sits between warning and reassurance. The song is a gift that keeps the covenant alive in memory, so that when trouble comes the people have a witness pointing them back to God rather than leaving them to guess why things have gone wrong.
Key Phrases in Deuteronomy 31:21
Deuteronomy 31:6
Be strong and courageous. Don’t be afraid or scared of them; for the LORD your God himself is who goes with you. He will not fail you nor forsake you.”
(WEB)
This verse, spoken by Moses to the people just before Joshua takes over, shows the same pattern of warning joined to assurance. It reminds us that God’s presence does not depend on Israel’s perfect performance, and it steadies the reader who is facing the difficulties that verse 21 describes.
Psalm 78:5-7
5 For he established a testimony in Jacob, and appointed a teaching in Israel, which he commanded our fathers, that they should make them known to their children; 6 that the generation to come might know, even the children who should be born; who should arise and tell their children, 7 that they might set their hope in God, and not forget God’s deeds, but keep his commandments…
(WEB)
This psalm echoes Deuteronomy’s concern that God’s law be taught to children so they will not forget. It shows the same hope that each generation will remember God’s works and keep his commands, which is exactly what the song in Deuteronomy 31 was meant to accomplish.
A Short Prayer From Deuteronomy 31:21
Lord, you know my ways and what I am doing today, and nothing about my heart is hidden from you. When trouble comes and I am tempted to forget what you have promised, help me remember the truths I have learned from your word. Let those truths speak to me like a witness that points me back to you. Teach me to pass your faithfulness on to the people I love, so that they too will hold on when the hard seasons arrive. Amen.
