Israel's rebelliousness and the Lord's deliverance