Deuteronomy 2:1-23 ESV
“Then we turned and journeyed into the wilderness in the direction of the Red Sea, as the LORD told me. And for many days we traveled around Mount Seir. Then the LORD said to me, ‘You have been traveling around this mountain country long enough. Turn northward and command the people, “You are about to pass through the territory of your brothers, the people of Esau, who live in Seir; and they will be afraid of you. So be very careful. Do not contend with them, for I will not give you any of their land, no, not so much as for the sole of the foot to tread on, because I have given Mount Seir to Esau as a possession. You shall purchase food from them with money, that you may eat, and you shall also buy water from them with money, that you may drink. For the LORD your God has blessed you in all the work of your hands. He knows your going through this great wilderness. These forty years the LORD your God has been with you. You have lacked nothing.”’ So we went on, away from our brothers, the people of Esau, who live in Seir, away from the Arabah road from Elath and Ezion-geber.
“And we turned and went in the direction of the wilderness of Moab. And the LORD said to me, ‘Do not harass Moab or contend with them in battle, for I will not give you any of their land for a possession, because I have given Ar to the people of Lot for a possession.’ (The Emim formerly lived there, a people great and many, and tall as the Anakim. Like the Anakim they are also counted as Rephaim, but the Moabites call them Emim. The Horites also lived in Seir formerly, but the people of Esau dispossessed them and destroyed them from before them and settled in their place, as Israel did to the land of their possession, which the LORD gave to them.) ‘Now rise up and go over the brook Zered.’ So we went over the brook Zered. And the time from our leaving Kadesh-barnea until we crossed the brook Zered was thirty-eight years, until the entire generation, that is, the men of war, had perished from the camp, as the LORD had sworn to them. For indeed the hand of the LORD was against them, to destroy them from the camp, until they had perished.
“So as soon as all the men of war had perished and were dead from among the people, the LORD said to me, ‘Today you are to cross the border of Moab at Ar. And when you approach the territory of the people of Ammon, do not harass them or contend with them, for I will not give you any of the land of the people of Ammon as a possession, because I have given it to the sons of Lot for a possession.’ (It is also counted as a land of Rephaim. Rephaim formerly lived there—but the Ammonites call them Zamzummim— a people great and many, and tall as the Anakim; but the LORD destroyed them before the Ammonites, and they dispossessed them and settled in their place, as he did for the people of Esau, who live in Seir, when he destroyed the Horites before them and they dispossessed them and settled in their place even to this day. As for the Avvim, who lived in villages as far as Gaza, the Caphtorim, who came from Caphtor, destroyed them and settled in their place.)
ESV: English Standard Version 2016