At the time when the LORD had made his solemn agreement with the people of Israel, he told them: Do not worship any other gods! Do not bow down to them or offer them a sacrifice.
You refused to listen to my prophets, who kept telling you, “Stop doing evil and worshipping other gods! Start obeying the LORD, and he will let you live in this land he gave your ancestors.”
Don't have anything to do with the nations that live around you. Don't worship their gods or pray to their idols or make promises in the names of their gods.