2 Kings 17:8

8 and walk in the statutes of the nations that Jehovah dispossessed from the presence of the sons of Israel, and of the kings of Israel that they made;

2 Kings 17:8 Meaning and Commentary

2 Kings 17:8

And walked in the statutes of the heathen, whom the Lord cast
out from before the children of Israel
Meaning the Canaanites, in whose idolatrous ways they walked, and whom they imitated; though their ejection out of the land should have been a warning to them, and they were the more inexcusable, as they were particularly cautioned against walking in them, ( Leviticus 18:3 )

and of the kings of Israel, which they had made;
their laws and statutes, to worship the golden calves, and not go up to Jerusalem to worship.

2 Kings 17:8 In-Context

6 in the ninth year of Hoshea hath the king of Asshur captured Samaria, and removeth Israel to Asshur, and causeth them to dwell in Halah, and in Habor, [by] the river Gozan, and [in] the cities of the Medes.
7 And it cometh to pass, because the sons of Israel have sinned against Jehovah their God -- who bringeth them up out of the land of Egypt, from under the hand of Pharaoh king of Egypt -- and fear other gods,
8 and walk in the statutes of the nations that Jehovah dispossessed from the presence of the sons of Israel, and of the kings of Israel that they made;
9 and the sons of Israel do covertly things that [are] not right against Jehovah their God, and build for them high places in all their cities, from a tower of the watchers unto the fenced city,
10 and set up for them standing-pillars and shrines on every high height, and under every green tree,
Young's Literal Translation is in the public domain.