Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
WEB

Joshua 2:8

Before they had lain down, she came up to them on the roof.

Parallel Translations

LXXView canonical →
And it came to pass when the men who pursued after them were gone forth, and before the spies had lain down to sleep, that she came up to them on the top of the house;
Brenton's Septuagint Translation
LXX2012View canonical →
And it came to pass when the men who pursued after them were gone forth, and before the spies had lain down to sleep, that she came up to them on the top of the house;
Septuagint in American English (2012)
KJVView canonical →
And before they were laid down, she came up unto them upon the roof;
King James Version