Deuteronomy 3:19-20

3:19 But your wives, children, and livestock (of which I know you have many) may remain in the cities I have given you. 3:20 You must fight until the Lord gives your countrymen victory as he did you and they take possession of the land that the Lord your God is giving them on the other side of the Jordan River. Then each of you may return to his own territory that I have given you.”