Joshua 2:8

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

Before the two men lay down to rest, Rahab climbed to the roof to speak with them. She was a Canaanite who had abandoned idolatry to worship the true God. In doing so she was turning decisively toward joining God's chosen people.