Joshua 10:20
And it came to pass, when Joshua and the children of Israel had made an end of slaying them with a very great slaughter, till they were consumed, that the rest which remained of them entered into fenced cities. And it came to pass, when Joshua and the children of Israel had made an end of slaying them with a very great slaughter, till they were consumed, that the rest which remained of them entered into fenced cities.
Joshua 10:20 belongs to the record of Israel's campaign against the Canaanites under Joshua's leadership. That campaign unfolded after Israel had entered Canaan to take possession of the land promised to them. Its immediate background includes the deception by which the Gibeonites secured a league with Israel in order to preserve their own lives.