Deuteronomy 11:28

and the curse, if you do not obey the commandments of the LORD your God, but turn aside from the way which I command you today, to go after other gods which you have not known.

Surrounding context

11:27 the blessing, if you obey the commandments of the LORD your God which I command you today;

11:28 and the curse, if you do not obey the commandments of the LORD your God, but turn aside from the way which I command you today, to go after other gods which you have not known.

11:29 Now it shall be, when the LORD your God has brought you into the land which you go to possess, that you shall put the blessing on Mount Gerizim and the curse on Mount Ebal.

Translation and sources