Joshua the son of Nun secretly sent two men out of Shittim as spies, saying, "Go, view the land, including Jericho." They went and came into the house of a prostitute whose name was Rahab, and slept there.
TSK
TSK · Matthew 1:5
مراجع Treasury of Scripture Knowledge في WEB.
Joshua 2:1
TSK
Ruth 1:4
TSK
They took them wives of the women of Moab; the name of the one was Orpah, and the name of the other Ruth: and they lived there about ten years.
Ruth 1:22
TSK
So Naomi returned, and Ruth the Moabitess, her daughter-in-law, with her, who returned out of the country of Moab: and they came to Bethlehem in the beginning of barley harvest.
and Nahshon became the father of Salma, and Salma became the father of Boaz,
Luke 3:32
TSK
the son of Jesse, the son of Obed, the son of Boaz, the son of Salmon, the son of Nahshon,
James 2:25
TSK
In the same way, wasn't Rahab the prostitute also justified by works, in that she received the messengers, and sent them out another way?