In the twelfth year of King Ahaz of Judah, Hoshea son of Elah began to reign in Samaria over Israel; he reigned nine years.
He did what was evil in the sight of the Lord, yet not like the kings of Israel who were before him.
King Shalmaneser of Assyria came up against him; Hoshea became his vassal, and paid him tribute.
But the king of Assyria found treachery in Hoshea; for he had sent messengers to King So of Egypt, and offered no tribute to the king of Assyria, as he had done year by year; therefore the king of Assyria confined him and imprisoned him.
Then the king of Assyria invaded all the land and came to Samaria; for three years he besieged it.
In the ninth year of Hoshea the king of Assyria captured Samaria; he carried the Israelites away to Assyria. He placed them in Halah, on the Habor, the river of Gozan, and in the cities of the Medes.
This occurred because the people of Israel had sinned against the Lord their God, who had brought them up out of the land of Egypt from under the hand of Pharaoh king of Egypt. They had worshiped other gods
and walked in the customs of the nations whom the Lord drove out before the people of Israel, and in the customs that the kings of Israel had introduced.
References for 2 Kings 17:8
The people of Israel secretly did things that were not right against the Lord their God. They built for themselves high places at all their towns, from watchtower to fortified city;
they set up for themselves pillars and sacred poles on every high hill and under every green tree;
References for 2 Kings 17:10
there they made offerings on all the high places, as the nations did whom the Lord carried away before them. They did wicked things, provoking the Lord to anger;