Numbers 32:13-23 TMB

13 And the LORD'S anger was kindled against Israel, and He made them wander in the wilderness forty years, until all the generation that had done evil in the sight of the LORD was consumed.
14 And behold, ye have risen up in your fathers' stead, an increase of sinful men, to augment yet the fierce anger of the LORD toward Israel.
15 For if ye turn away from after Him, He will yet again leave them in the wilderness, and ye shall destroy all this people."
16 And they came near unto him and said, "We will build sheepfolds here for our flocks and cities for our little ones,
17 but we ourselves will go ready and armed before the children of Israel until we have brought them unto their place; and our little ones shall dwell in the fortified cities because of the inhabitants of the land.
18 We will not return unto our houses until the children of Israel have inherited every man his inheritance.
19 For we will not inherit with them on yonder side of the Jordan or forward, because our inheritance has fallen to us on this side of the Jordan eastward."
20 And Moses said unto them, "If ye will do this thing, if ye will go armed before the LORD to war,
21 and will go all of you armed over the Jordan before the LORD, until He hath driven out His enemies from before Him
22 and the land be subdued before the LORD, then afterward ye shall return and be guiltless before the LORD and before Israel, and this land shall be your possession before the LORD.
23 But if ye will not do so, behold, ye have sinned against the LORD; and be sure your sin will find you out.