The king of Assyria brought people from Babylon, Kuthah, Avva, Hamath and Sepharvaim and settled them in the towns of Samaria to replace the Israelites. They took over Samaria and lived in its towns.
References for 2 Kings 17:24
When they first lived there, they did not worship the LORD; so he sent lions among them and they killed some of the people.
References for 2 Kings 17:25
It was reported to the king of Assyria: “The people you deported and resettled in the towns of Samaria do not know what the god of that country requires. He has sent lions among them, which are killing them off, because the people do not know what he requires.”
Then the king of Assyria gave this order: “Have one of the priests you took captive from Samaria go back to live there and teach the people what the god of the land requires.”
So one of the priests who had been exiled from Samaria came to live in Bethel and taught them how to worship the LORD.
Nevertheless, each national group made its own gods in the several towns where they settled, and set them up in the shrines the people of Samaria had made at the high places.
References for 2 Kings 17:29
The people from Babylon made Sukkoth Benoth, those from Kuthah made Nergal, and those from Hamath made Ashima;
the Avvites made Nibhaz and Tartak, and the Sepharvites burned their children in the fire as sacrifices to Adrammelek and Anammelek, the gods of Sepharvaim.
References for 2 Kings 17:31
They worshiped the LORD, but they also appointed all sorts of their own people to officiate for them as priests in the shrines at the high places.
References for 2 Kings 17:32
They worshiped the LORD, but they also served their own gods in accordance with the customs of the nations from which they had been brought.
To this day they persist in their former practices. They neither worship the LORD nor adhere to the decrees and regulations, the laws and commands that the LORD gave the descendants of Jacob, whom he named Israel.
References for 2 Kings 17:34