Numbers 32:13-23 CEB

13 The LORD became angry with the Israelites and made them wander in the desert for forty years until the entire generation had died, which had done evil in the LORD's eyes.
14 Now you've taken the place of your ancestors, a group of sinful men, to intensify the LORD's anger against Israel.
15 If you turn away from him, he will turn away again to abandon Israel in the desert. Then you will destroy this entire people."

Conditions for possession of the land

16 So they approached him and said, "We will build walled enclosures here for our livestock and towns for our children.

References for Numbers 32:16

      17 Then we will eagerly fight in front of the Israelites until we have brought them into their place. Our children will live in the fortified cities because of the land's inhabitants.
      18 And we won't return to our homes until each one of the Israelites takes possession of his property.
      19 We won't inherit land with them there across the Jordan, because we've received our property on the east side of the Jordan."
      20 Moses said to them, "Do this and fight before the LORD in war.
      21 All of you who are equipped for war, cross the Jordan before the LORD until he has driven his enemies out before him
      22 and the land is subdued in the LORD's presence. Then you may return innocently before the LORD and Israel, and this land will be your property before the LORD.
      23 But if you don't do this, you've sinned against the LORD. Know that your sin will find you.