Deuteronomy 31:15-21 NABRE

15 And the Lord appeared at the tent in a column of cloud; the column of cloud stood at the entrance of the tent.

16 The Lord said to Moses, Soon you will be at rest with your ancestors, and then this people will prostitute themselves by following the foreign gods among whom they will live in the land they are about to enter. They will forsake me and break the covenant which I have made with them.

17 At that time my anger will flare up against them; I will forsake them and hide my face from them; they will become a prey to be devoured, and much evil and distress will befall them. At that time they will indeed say, “Is it not because our God is not in our midst that these evils have befallen us?”

18 Yet I will surely hide my face at that time because of all the evil they have done in turning to other gods.

19 Now, write out this song for yourselves. Teach it to the Israelites and have them recite it, so that this song may be a witness for me against the Israelites.

20 For when I have brought them into the land flowing with milk and honey which I promised on oath to their ancestors, and they have eaten and are satisfied and have grown fat, if they turn to other gods and serve them, despising me and breaking my covenant,

21 then, when great evil and distress befall them, this song will speak to them as a witness, for it will not be forgotten if their descendants recite it. For I know what they are inclined to do even at the present time, before I have brought them into the land which I promised on oath.