Deuteronomy 17:3

17:3 by serving other gods and worshiping them – the sun, moon, or any other heavenly bodies which I have not permitted you to worship.

Deuteronomy 20:18

20:18 so that they cannot teach you all the abhorrent ways they worship their gods, causing you to sin against the Lord your God.

Deuteronomy 28:14

28:14 But you must not turn away from all the commandments I am giving you today, to either the right or left, nor pursue other gods and worship them.

Deuteronomy 29:26

29:26 They went and served other gods and worshiped them, gods they did not know and that he did not permit them to worship.