Deuteronomy 31:16-18

31:16 Then the Lord said to Moses, “You are about to die, and then these people will begin to prostitute themselves with the foreign gods of the land into which they are going. They will reject me and break my covenant that I have made with them. 31:17 At that time my anger will erupt against them and I will abandon them and hide my face from them until they are devoured. Many disasters and distresses will overcome them so that they will say at that time, ‘Have not these disasters overcome us because our God is not among us?’ 31:18 But I will certainly hide myself at that time because of all the wickedness they will have done by turning to other gods.

Deuteronomy 31:29

31:29 For I know that after I die you will totally corrupt yourselves and turn away from the path I have commanded you to walk. Disaster will confront you in the days to come because you will act wickedly before the Lord, inciting him to anger because of your actions.”