Deuteronomy 31:12-22

12 Gather the people together, men and women and children and thy strangers that are within thy gates, that they may hear and that they may learn and fear the LORD your God and observe to do all the words of this law,
13 and that their children, who have not known any thing, may hear and learn to fear the LORD your God all the days that ye live in the land unto which ye are to pass the Jordan to inherit it.
14 And the LORD said unto Moses, Behold, thy days are fulfilled that thou must die; call Joshua and wait in the tabernacle of the testimony that I may give him a charge. And Moses and Joshua went and waited in the tabernacle of the testimony.
15 And the LORD appeared in the tabernacle in the pillar of cloud, and the pillar of the cloud stood over the door of the tabernacle.
16 And the LORD said unto Moses, Behold, thou shalt sleep with thy fathers, and this people shall rise up and fornicate after the gods of the strangers of the land where they go when they shall be among them and will forsake me and break my covenant which I have made with them.
17 Then my anger shall be kindled against them in that same 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?
18 But 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.
19 Now therefore write ye this song for you and teach it to the sons of Israel; put it in their mouths that this song may be a witness for me against the sons of Israel.
20 For I shall bring them into the land which I swore unto their fathers, that flows with milk and honey, and they shall eat and fill themselves and wax fat; then they will turn unto other gods and serve them and provoke me and break my covenant.
21 And it shall come to pass when many evils and troubles are befallen them, that this song shall reply to them in their face as a witness, for it shall not be forgotten out of the mouths of their seed; for I know their imagination which they go about, even now, before I have brought them into the land which I swore.
22 Moses therefore wrote this song the same day and taught it to the sons of Israel.
The Jubilee Bible (from the Scriptures of the Reformation), edited by Russell M. Stendal, Copyright © 2000, 2001, 2010