The narrative recounts a period of wandering and divine redirection for the Israelites, beginning with their disobedience at Kadesh Barnea and subsequent forty years of wilderness sojourns. Following a failed attempt to pass through Edom, and then traveling around Moab, the Israelites are guided by God to conquer King Sihon of Heshbon, efficiently securing territory for the tribes of Reuben and Gad. The account emphasizes God's orchestration of events, delivering enemies into their hands and providing sustenance throughout their journey, ultimately demonstrating His sovereignty and preparing them for the conquest of Canaan while adhering to specific divine limitations regarding interactions with neighboring peoples.