Deuteronomy 31:21-24 Holman Christian Standard Bible (HCSB)

21. And when many troubles and afflictions come to them, this song will testify against them, because their descendants will not have forgotten it. For I know what they are prone to do, even before I bring them into the land I swore to give them.”

22. So Moses wrote down this song on that day and taught it to the Israelites.

23. The Lord commissioned Joshua son of Nun, “Be strong and courageous, for you will bring the Israelites into the land I swore to them, and I will be with you.”

24. When Moses had finished writing down on a scroll every single word of this law,

Deuteronomy 31