As for its being written that God dealt well with the Hebrew midwives and with Rahab the harlot of Jericho, he did not deal well with them because they lied but because they were merciful to the men of God. And so it was not their deception that was rewarded but their benevolence; the benignity of their intention, not the iniquity of their invention.
We ought therefore to consider our houses more carefully, lest perhaps they have collapsed in some part, and need to be built after the captivity; and we must come to their aid with all toil and skill, so that they do not utterly collapse, that there may be fulfilled in us what is written in Exodus: 'Because the midwives feared God, they built themselves houses.' See what it says: Because they feared God, they built houses. Therefore a house cannot be constructed except by the fear of God. If then those women built houses by the fear of God, who had not sinned but rather acted in accord with G...od's will: what ought we, who have been taken captive, to do? Listen, sinner: we ought indeed to fear God, that we may not sin; but the second plank after shipwreck is repentance.
Behold, the Lord has shut me up, so that I do not bear: go in therefore to my handmaid, that I may have sons from her. Note carefully that the begetting of sons is written in the Hebrew as building: for there we read go in to my handmaid, if by some means I may be built up from her. And perhaps this is what is said in Exodus: God blessed the midwives, and they built houses for themselves.
And that you may learn this—Pharaoh commanded the infants to be cast into the river. Unless the infants had been cast forth, Moses would not have been saved, he would not have been brought up in the palace. When he was safe, he was not in honor; when he was exposed, then he was in honor. But God did this, to show His riches of resource and contrivance.
Just as Pharaoh was drowned in those very waters in which he had drowned the infants, so too David removed Goliath's head with that very sword with which he had destroyed many. Moses divided the waters through the symbol of the cross, while David laid Goliath low through the symbol of the stone. Our Lord condemned Satan by the word of his mouth when the latter was tempting him. Pharaoh was drowned by the waters with which he had drowned [others].
But what does Scripture say? "The midwives feared God," it says, "and did not do as the king of Egypt commanded them." Certain men before us have said that these midwives hold the pattern of rational learning. For midwives are, as it were, in the middle, and tend both the males and the females at their birth. This learning, then, of common rational knowledge reaches to nearly every faculty, instructs all, tends all. If anyone in it be of manly spirit and wish to seek heavenly things and to pursue divine things, he will come, as though healed and warmed by learning of this kind, better prepared... for the understanding of divine things. For there is one, as it were the sparrow, which teaches the loftier things and, with the rational wings of doctrine, summons souls to fly on high. The other, which is ruddy or modest, is moral, orders behavior, teaches modesty, instills honesty. To me, however, since Scripture says of these that "because they feared God, they did not do the command of the king of Egypt," these two midwives seem to preserve the figure of both testaments: "Sephora," which is interpreted sparrow, may be compared to the law, which "is spiritual"; but "Phua," which is ruddy or modest, indicates the Gospels, which are ruddy with the blood of Christ and throughout the whole world glow red with the gore of his passion. By these, then, as by midwives, the souls that are born in the church are healed, because from the reading of the Scriptures all the medicine of learning is bestowed upon them. Yet Pharaoh attempts through these things to slay the males of the church, when he suggests heretical notions and perverse doctrines to any who are studious in the divine Scriptures. But the foundation of God stands immovable. For "the midwives fear God," that is, they teach the fear of God, because "the beginning of wisdom is the fear of the Lord." Thus, finally, I think there is fitted still more suitably that which is written in the later passage, where it says: "because the midwives feared God, they made themselves houses." This saying can have no coherence according to the letter. For what order of reasoning is it, that it should say: "because the midwives feared God, they made themselves houses"? — as though a house should come to be for the reason that God is feared. If this is taken as it is written, it will seem to have not only no coherence, but also very great emptiness. But if you see how the Scriptures of the new and old testament, teaching the fear of God, make houses for the church and fill the whole circle of the earth with houses of prayer, then what is written will seem to be written reasonably. Thus, then, these midwives, because they fear God and teach the fear of God, do not carry out the command of the king of Egypt, but let their males live. Nor yet is it said that they obeyed the command of the king so as to let the females live. I dare confidently to say, according to the sense of Scripture: these midwives do not let the females live. For neither are vices taught in the churches, nor is luxury proclaimed, nor are sins nourished — for this is what Pharaoh wishes, when he commands the females to be let live — but virtue alone is cultivated, and virtue alone is nourished. But let us refer these things also to each one of us. And you too, if you fear God, do not carry out the command of the king of Egypt. For he commands you to live in delights, to love the present age, to covet present things. But you, if you fear God and exhibit the office of a midwife toward your soul, if you desire to confer salvation upon it, do not do these things, but let live the male that is in you, tend and cherish your inner man, and through good acts and understandings win for it eternal life.