וְאֵ֨ת כָּל־הַמְּלָכִ֤ים הָאֵ֙לֶּה֙ וְאֶת־אַרְצָ֔ם לָכַ֥ד יְהוֹשֻׁ֖עַ פַּ֣עַם אֶחָ֑ת כִּ֗י יְהוָה֙ אֱלֹהֵ֣י יִשְׂרָאֵ֔ל נִלְחָ֖ם לְיִשְׂרָאֵֽל׃
And all these kings and their land did Joshua take at one time, because the LORD, the God of Israel, fought for Israel.
Read halakhic rulings (Jewish law) on Joshua 10:42: and classical halakhic sources.