Dates: c. AD 160 (the Dialogue with Trypho 111; Justin b. c. 100, martyred c. 165) · Wikipedia
Summary: Justin, arguing with the Jew Trypho, makes the scarlet thread the express symbol of the blood of Christ, by which former harlots and the unrighteous of every nation receive remission of sins.
For the sign of the scarlet thread, which the spies, sent to Jericho by Joshua, son of Nave (Nun), gave to Rahab the harlot, telling her to bind it to the window through which she let them down to escape from their enemies, also manifested the symbol of the blood of Christ, by which those who were at one time harlots and unrighteous persons out of all nations are saved, receiving remission of sins, and continuing no longer in sin.
— Justin Martyr, Dialogue with Trypho 111 (ANF vol. 1), source. Justin presses the scarlet=blood reading in the midst of his disputation with Trypho, drawing it as a proof from the Hebrew Scriptures themselves.1