Joshua 2:8

6 But she had brought them up to the roof of the house, and hid them with the stalks of flax, which she had laid in order upon the roof.

7 And the men pursued after them the way to Jordan unto the fords: and as soon as they which pursued after them were gone out, they shut the gate.

And before they were laid down, she came up unto them upon the roof;

9 And she said unto the men, I know that the LORD hath given you the land, and that your terror is fallen upon us, and that all the inhabitants of the land faint because of you.

10 For we have heard how the LORD dried up the water of the Red sea for you, when ye came out of Egypt; and what ye did unto the two kings of the Amorites, that were on the other side Jordan, Sihon and Og, whom ye utterly destroyed.

Here the Bible tells a story about someone else. Ask yourself what it can say to us today. Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
Before the spies lay down for the night, Rahab went up on the roof
KJV
And before they were laid down, she came up unto them upon the roof;
WEB
Before they had lain down, she came up to them on the roof.
ASV
And before they were laid down, she came up unto them upon the roof;
DARBY
And before they had lain down, she went up to them upon the roof;
BLB
And before they lay down, she came up to them on the roof.
ÅB
Før speiderne hadde lagt seg, gikk hun opp til dem på taket,
OTB
Før spionene la seg for natten, gikk hun opp til dem på taket
B1930
Før speiderne hadde lagt sig, gikk hun op til dem på taket,

Study notes (Tyndale)

Original text and word study