This disaster happened because the people of Israel sinned against the LORD their God who had brought them out of the land of Egypt from the power of Pharaoh king of Egypt and because they worshiped other gods.