Joshua 2:15ff.; Josephus, Antiquities V, 1, 2, elaborates on the intelligence gathered.