Adam Clarke's Commentary on the Bible - Joshua 2:5
When it was dark - So it appears that it was after night that the king of Jericho sent to Rahab, ordering her to produce the persons who lodged with her. The season itself was friendly to the whole plot: had these transactions taken place in daylight, it is scarcely possible that the spies could have escaped. But this is no excuse for the woman's prevarication, for God could have saved his messengers independently of her falsity. God never says to any, Do evil that good may come of it.... read more
Adam Clarke's Commentary on the Bible - Joshua 2:4
And hid them - Probably she secreted them for the time being in some private corner, till she had the opportunity of concealing them on the house-top in the manner mentioned Joshua 2:6 . read more