2 Kings 17 16 And they left all the commandments of the LORD their God, and made them molten images, even two calves, and made a grove, and worshipped all the host of heaven, and served Baal. 17 And they caused their sons and their daughters to pass through the fire, and used divination and enchantments, and sold themselves to do evil in the sight of the LORD, to provoke him to anger.
18 Therefore the LORD was very angry with Israel, and removed them out of his sight: there was none left but the tribe of Judah only.
Or, perhaps God is wiser and more intelligent than you take Him to be.