"All these things happened to them figuratively, and they were written for our sake, upon whom the ends of the ages have come" — when the man who "is a Jew outwardly" and who has "circumcision made manifest in the flesh" reads this, not knowing what it is to be "inwardly a Jew in the circumcision of the heart," he thinks it to be nothing else than wars described, and the destruction of enemies, and the Israelites conquering under Jesus as their leader and plundering the kingdoms of the nations. But the one who is "a Jew inwardly," that is, the Christian, who follows Jesus not so much as the so...n of Nave but as the Son of God, understands all these things to be mysteries of the kingdom of heaven, and says that even now my Lord Jesus Christ wages war against the opposing powers and casts them out of the cities which they possessed — that is, out of our souls — and kills the kings who reigned in our souls, "that sin may no longer reign in us," so that, after he has slain the king of sin out of the city of our soul, our soul may become the city of God and God may reign in it, and it may be said to us that "behold, the kingdom of God is within you." This work, therefore, which the heretics accuse of cruelty, is a work of the highest mercy — that the Lord Jesus should now in truth accomplish through each and every soul of believers what was first foreshadowed by the son of Nave through each and every city: so that those cities which were possessed by evil and utterly wicked kings "according to the prince of the power of the air of this world, the spirit that now works in the children of unbelief" — these having been expelled and slain — he may deign to make them "the dwelling place of God" and "the temple of the Holy Spirit," so that "the members which had served" under the wicked king "iniquity unto uncleanness may now serve righteousness unto sanctification." Thus, therefore, understand that Jesus slew the king of Jericho and the king of Ai and the king of Libnah and the king of Lachish and the king of Hebron, so that all these cities, which before under the most wicked kings observed the law of sin, may now conduct themselves under the laws of God.
Source: HOMILIES ON JOSHUA 13.1