I will be mindful of Rahab: of that harlot Rahab, who received the spies of Jesus, who was in Jericho, where Jesus had come, and he sent two spies. Jericho, this world, which is overturned in seven days, wishes to kill the spies. And while it desires to kill the spies, the harlot Rahab alone received them. And she received them, not in a lower place, but in an upper room, on the housetop, that is, in the height of her faith, and she hid them in flax, that is, in tow of flax.
This much we have said so far according to the historical sense, and you see how from the history itself we gradually a...scend to the mystical sacraments. Jesus the leader, who had led the people out of Egypt: Jesus, who is interpreted as Savior, after Moses had died and been buried in the land of Moab, in the land of Arabia, that is, after the Law was dead, desires to lead his people into the gospel, and sends two spies to Jericho: two spies, one to the circumcision, another to the nations, Peter and Paul. Jericho seeks to kill them; that harlot receives them, the Church gathered from the nations. She believes in Jesus, and those whom Jericho wished to kill, she herself saves on her housetop. And she places them on the housetop, in her lofty faith, and hides them in the flax of the reed. Though she is a harlot, yet she places them in flax. Flax comes to whiteness through much toil and diligence. You yourselves know that flax is born from the earth, and when it has been born in the earth, it is black, has no beauty, no use. First then it is taken from the earth, it is broken, then it is twisted, afterward it is washed, then it is beaten, then it is combed, and with much care and toil it scarcely comes to whiteness. Therefore this is said, that this harlot indeed received the spies in her flax, so that those spies might turn her flax into whiteness. What then? She gives them counsel, and says: 'Wait here three days.' It was not one day, not two, but three days. See what she says, Wait three days. She does not name three nights, but three days, because she had an enlightened heart. And then she says, and after three days: and what does she say? 'Do not,' she says, 'go through the plains, but climb up into the mountains.' For the faith of the Church is not established in the valleys, but in the mountains. Jericho then is afterward overturned by Jesus, and this harlot alone is preserved unharmed. Therefore this is said. I will be mindful of Rahab: that is, of her who received my spies, and I on the day of judgment will be mindful of her.
Source: Homily 18, on Psalm 86