And it happened because the sons 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,