And the LORD threw them into a panic before Israel, who struck them with a great blow at Gibeon and chased them by the way of the ascent of Beth-horon and struck them as far as Azekah and Makkedah.
10. And the Lord discomfited them, etc In the first slaughter the Lord exerted his own might, but used the swords of the people. Hence we infer that whenever he works by men, nothing is detracted from his glory, but whatever is done redounds to him alone.
Joshua's promise to the Gibeonites bound him not merely to spare them but to defend them as his own servants sheltering under God's wings. When he moved from Gilgal to relieve them, he walked in duty, and God's word settled all fear: those marked for destruction can neither resist nor escape, however many kings confederate against you.
AI summary
Commenting on Joshua 10:7-14
And the Lord discomfited them before Israel,.... Disturbed, troubled, and frightened them, at the appearance and presence of the people of Israel; they were thrown into terror and confusion upon their approach, being so sudden and unexpected: and slew them with a great slaughter at Gibeon; by the Israelites, who came upon them suddenly: and chased them along the way that goeth up to Bethhoron...