The word "they" refers to the Israelite soldiers. It does not refer only to the two young men who brought Rahab and her family out of the city.