Here are the words I spoke to all of the people of Israel.
I said, "I am now 120 years old. I'm not able to lead you anymore. The LORD has said to me, 'You will not go across the Jordan River.'
"The LORD your God himself will go across ahead of you. He'll destroy the nations that are there in order to make room for you. You will take over their land. Joshua will also go across ahead of you, just as the LORD said he would.
"The LORD will do to those nations what he did to Sihon and Og. He destroyed those Amorite kings along with their land.
The LORD will hand those nations over to you. Then you must do to them everything I've commanded you to do.
"Be strong and brave. Don't be afraid of them. Don't be terrified because of them. The LORD your God will go with you. He will never leave you. He'll never desert you."
Then I sent for Joshua. I spoke to him in front of all of the people of Israel. I said, "Be strong and brave. You must go with these people. They are going into the land the LORD promised with an oath to give to their fathers. You must divide it up among them. They will each receive their share.
The LORD himself will go ahead of you. He will be with you. He will never leave you. He'll never desert you. So don't be afraid. Don't lose hope."
I wrote down that law. I gave it to the priests, who are sons of Levi. They carried the ark of the covenant of the Lord. I also gave the law to all of the elders of Israel.
Then I commanded them, "You must read this law at the end of every seven years. Do it in the year when you forgive people what they owe. Read it during the Feast of Booths.
That's when all of the people of Israel come to appear in front of the LORD your God at the holy tent. It will be at the place he will choose. You must read this law to them.
"Gather the people together. Gather the men, women and children. Also bring together the outsiders who are living in your towns. Then they can listen and learn to have respect for the LORD your God. And they'll be careful to obey all of the words of this law.
Their children must hear it read too. They don't know this law yet. They too must learn to have respect for the LORD your God. They must respect him as long as you live in the land. You are about to go across the Jordan River and take that land as your very own."
The LORD spoke to me. He said, "The day when you will die is near. Have Joshua go to the Tent of Meeting. Join him there. That is where I will appoint him as the new leader." So Joshua and I went to the Tent of Meeting.
Then the LORD appeared at the tent in a pillar of cloud. It stood over the entrance to the tent.
The LORD spoke to me. He said, "You are going to join the members of your family who have already died. The people will not be faithful to me. They will soon join themselves to the strange gods that are worshiped in the land they are entering. The people will desert me. They will break the covenant I made with them.
"On that day I will become angry with them. I will desert them. I will turn my face away from them. And they will be destroyed. Many horrible troubles and hard times will come on them. On that day they will say, 'Trouble has come on us. Our God isn't with us!'
"I will certainly turn away from them on that day. I will do it because they did a very evil thing when they turned to other gods.
"I want you to write down a song for yourselves. Teach it to the people of Israel. Have them sing it. It will be my witness against them.
"I will bring them into a land that has plenty of milk and honey. I promised the land to their fathers. I took an oath when I promised it. In that land they will eat until they have had enough. They will get fat. When they do, they will turn to other gods and worship them. They will turn their backs on me. They will break my covenant.
"Many horrible troubles and hard times will come on them. Then the song I am giving you will be a witness against them. That is because the song will not be forgotten by their children and their children's children. I know what they are likely to do. I know it even before I bring them into the land I promised them with an oath."
So that day I wrote the song down. And I taught it to the people of Israel.
The LORD gave a command to Joshua, the son of Nun. He said, "Be strong and brave. You will bring the Israelites into the land I promised them with an oath. I myself will be with you."
I finished writing the words of that law in a scroll. I wrote them down from beginning to end.
Then I gave a command to the Levites who carried the ark of the covenant of the Lord. I said,
"Take this Scroll of the Law. Place it beside the ark of the covenant of the LORD your God. It will remain there as a witness against you.
I know how you refuse to obey the Lord. I know how stubborn you are. You have refused to obey him while I've been living among you. So you will certainly refuse to obey him after I'm dead!
Gather together all of the elders of your tribes and all of your officials. Bring them to me. Then I can speak these words to them. I can call for heaven and earth to give witness against them.
I know that after I'm dead you will certainly become very sinful. You will turn away from the path I've commanded you to take. In days to come, trouble will fall on you. That's because you will do what is evil in the sight of the Lord. You will make him very angry because of the statues of gods your hands have made."
I spoke the words of this song from beginning to end. The whole community of Israel heard them. Here is what I said.