2 Kings 17:17

17 and cause their sons and their daughters to pass over through fire, and divine divinations, and use enchantments, and sell themselves to do the evil thing in the eyes of Jehovah, to provoke Him;

2 Kings 17:17 Meaning and Commentary

2 Kings 17:17

And they caused their sons and their daughters to pass through
the fire
To Baal or Moloch, which were the same, and represented the sun, which, as the above writer observes, presides in the element of fire; this was done either by way of lustration, or so as to be burnt, see ( 2 Kings 16:3 )

and used divination and enchantments:
to get knowledge of what was to be done at present, or of things to come, neglecting the word of God and his prophets, and acting against the express law of God, ( Deuteronomy 18:10-12 )

and sold themselves to do evil in the sight of the Lord, to provoke
him to anger;
as Ahab their king did, see ( 1 Kings 21:20 1 Kings 21:25 ) , they were as much the servants of sin as if they had sold themselves to be slaves to it.

2 Kings 17:17 In-Context

15 and reject His statutes and His covenant that He made with their fathers, and His testimonies that He testified against them, and go after the vain thing, and become vain, and after the nations that are round about them, of whom Jehovah commanded them not to do like them;
16 And they forsake all the commands of Jehovah their God, and make to them a molten image -- two calves, and make a shrine, and bow themselves to all the host of the heavens, and serve Baal,
17 and cause their sons and their daughters to pass over through fire, and divine divinations, and use enchantments, and sell themselves to do the evil thing in the eyes of Jehovah, to provoke Him;
18 That Jehovah sheweth himself very angry against Israel, and turneth them aside from His presence; none hath been left, only the tribe of Judah by itself.
19 Also Judah hath not kept the commands of Jehovah their God, and they walk in the statutes of Israel that they had made.
Young's Literal Translation is in the public domain.