Israel Exiled Because of Sin

7 All this took place because the Israelites had sinned against the LORD their God, who had brought them up out of Egypt from under the power of Pharaoh king of Egypt. They worshiped other gods

Read 2 Kings 17:7 Using Other Translations

For so it was, that the children of Israel had sinned against the LORD their God, which had brought them up out of the land of Egypt, from under the hand of Pharaoh king of Egypt, and had feared other gods,
And 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, and had feared other gods
This disaster came upon the people of Israel because they worshiped other gods. They sinned against the LORD their God, who had brought them safely out of Egypt and had rescued them from the power of Pharaoh, the king of Egypt.