Deuteronomy 31:19
“Now therefore write ye this song for you, and teach it the children of Israel: put it in their mouths, that this song may be a witness for me against the children of Israel.”
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?
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.
Now therefore write ye this song for you, and teach it the children of Israel: put it in their mouths, that this song may be a witness for me against the children of Israel.
For when I shall have brought them into the land which I sware unto their fathers, that floweth with milk and honey; and they shall have eaten and filled themselves, and waxen fat; then will they turn unto other gods, and serve them, and provoke me, and break my covenant.
And it shall come to pass, when many evils and troubles are befallen them, that this song shall testify against them 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 sware.
Counter-Arguments
The strongest case that this verse does not belong in this theme.

Cross-References
“Only take heed to thyself, and keep thy soul diligently, lest thou forget the things which thine eyes have seen, and lest they depart from thy heart all the days of thy life: but teach them thy sons, and thy sons’ sons;”
“Now go, write it before them in a table, and note it in a book, that it may be for the time to come for ever and ever:”
“O earth, earth, earth, hear the word of the Lord.”
“And the Lord answered me, and said, Write the vision, and make it plain upon tables, that he may run that readeth it.”
“And Moses spake in the ears of all the congregation of Israel the words of this song, until they were ended.”