Moses told this to the Israelites, but they did not listen to him because of their discouragement and hard labor.
TSK
TSK · Numbers 21:4
Treasury of Scripture Knowledge references in NET.
But Edom said to him,“You will not pass through me, or I will come out against you with the sword.”
So Moses did as the LORD commanded; and they went up Mount Hor in the sight of the whole community.
When they went up to the Eshcol Valley and saw the land, they frustrated the intent of the Israelites so that they did not enter the land that the LORD had given them.
But as for you, turn back and head for the wilderness by the way to the Red Sea.”
Then Israel went through the wilderness and bypassed the land of Edom and the land of Moab. They traveled east of the land of Moab and camped on the other side of the Arnon River; they did not go through Moabite territory(the Arnon was Moab’s border).
They strengthened the souls of the disciples and encouraged them to continue in the faith, saying,“We must enter the kingdom of God through many persecutions.”