Deuteronomy 17:2-3

17:2 Suppose a man or woman is discovered among you – in one of your villages that the Lord your God is giving you – who sins before the Lord your God and breaks his covenant 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.