Roman Catechism 16.107

Chapter 16 — Part II: The Sacraments — Baptism

Section 107. Such seems to have been the divine plan with regard to the children of Israel. God delivered them from the bondage of Egypt, having drowned Pharaoh and his hosts in the sea; yet He did not conduct them immediately into the happy land of promise; He first tried them by a variety and multiplicity of sufferings. And when He afterwards placed them in possession of the promised land and expelled the previous inhabitants from their native territories, yet He left a few other nations whom the Israelites could not exterminate, in order that His people might always have occasion to exercise fortitude and warlike courage.