Though God elected to save the Israelites, their sin did not make them any less worthy of death than the Egyptians. But the Lord provided a way for them to escape His wrath in those days. Ultimately, this looked forward to the time when the Lord would eternally save His people from judgment. We are saved from God’s wrath by God Himself. Let us never forget the righteous character of our Creator, who, despite our sin, mercifully chooses to redeem His people.
For further study:
The Bible in a year: