Deuteronomy 1:39-2:1
Moreover, your little ones who you said would be carried off, your children who do not yet know good from bad, they shall enter it; to them will I give it and they shall possess it. As for you, turn about and march into the wilderness by the way of the Sea of Reeds.
You replied to me, saying, "We stand guilty before the Lord. We will go up now and fight, just as the Lord our God commanded us." And you all girded yourselves with war gear and recklessly started for the hill country. But the Lord said to me, "Warn them: Do not go up and do not fight, since I am not in your midst; else you will be routed by your enemies." I spoke to you, but you would not listen; you flouted the Lord's command and willfully marched into the hill country. Then the Amorites who lived in those hills came out against you like so many bees and chased you, and they crushed you at Hormah in Seir. Again you wept before the Lord; but the Lord would not heed your cry or give ear to you.
Thus, after you had remained at Kadesh all that long time, 1we marched back into the wilderness by the way of the Sea of Reeds, as the Lord had spoken to me, and skirted the hill country of Seir a long time.
Then the Lord said to me...