Dates: c. AD 96 (the First Epistle to the Corinthians, ch. 12; Clement of Rome, fl. late 1st century) · Wikipedia
Summary: In the earliest surviving Christian text to interpret Rahab, Clement praises her faith and hospitality and reads the scarlet thread as a prophecy that redemption would come through the blood of the Lord.
On account of her faith and hospitality, Rahab the harlot was saved. … Moreover, they gave her a sign to this effect, that she should hang forth from her house a scarlet thread. And thus they made it manifest that redemption should flow through the blood of the Lord to all them that believe and hope in God. You see, beloved, that there was not only faith, but prophecy, in this woman.
— Clement of Rome, First Epistle to the Corinthians 12 (ANF vol. 1), source. Writing to Corinth in the name of the Roman church, Clement makes Rahab an exemplar of the faith and hospitality he is commending, then turns the scarlet thread of Joshua 2 into a foreshadowing of the atonement. (Also available in the Roberts–Donaldson translation.)1