All this happened because the Israelites sinned against the Lord their God, who brought them up from the land of Egypt, out from under the power of Pharaoh, Egypt’s king. They worshipped other gods.