Joshua
Joshua 2:3ESV·traditional attribution

Then the king of Jericho sent to Rahab, saying, “Bring out the men who have come to you, who entered your house, for they have come to search out all the land.”

Matthew Henry Presbyterian @wholebiblehenry

In these verses we have, I. The prudence of Joshua, in sending spies to observe this important pass, which was likely to be disputed at the entrance of Israel into Canaan (v. 1). Go view the land, even Jericho. Moses had sent spies (Num. 13) Joshua himself was one of them and it proved of ill consequence.

Commenting on Joshua 2:1-7

John Gill Reformed Baptist @doctorgill

And the king of Jericho sent unto Rahab,.... Not merely because she kept a public house, or being a prostitute had often strangers in it, and so conjectured that the men he had notice of might be there; but he sent upon certain information that they were seen to go in there, as it follows: saying, bring forth the men that are come to thee...

Geneva Bible Notes Reformed @genevanotes

And the king of Jericho sent unto Rahab, saying, Bring forth the men that are come to thee, which are entered into thine house: for they be come to search out all the country. (b) Though the wicked see the hand of God on them, they do not repent, but seek how they may by their power and policy resist his working.