8 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. 9 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.' 10 ( The Emim formerly lived there, a people great and many, and tall as the Anakim. 11 Like the Anakim they are also counted as Rephaim, but the Moabites call them Emim. 12 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.) 13 'Now rise up and go over the brook Zered.' So we went over the brook Zered. 14 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. 15 For indeed the hand of the Lord was against them, to destroy them from the camp, until they had perished. 16 "So as soon as all the men of war had perished and were dead from among the people, 17 the Lord said to me, 18 'Today you are to cross the border of Moab at Ar. 19 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.' 20 (It is also counted as a land of Rephaim. Rephaim formerly lived there--but the Ammonites call them Zamzummim-- 21 a people great and many, and tall as the Anakim; but the Lord destroyed them before the Ammonites,[1] and they dispossessed them and settled in their place, 22 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. 23 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.)

Matthew Henry's Commentary on Deuteronomy 2:8-23

Commentary on Deuteronomy 2:8-23

(Read Deuteronomy 2:8-23)

We have the origin of the Moabites, Edomites, and Ammonites. Moses also gives an instance older than any of these; the Caphtorims drove the Avims out of their country. These revolutions show what uncertain things wordly possessions are. It was so of old, and ever will be so. Families decline, and from them estates are transferred to families that increase; so little continuance is there in these things. This is recorded to encourage the children of Israel. If the providence of God has done this for Moabites and Ammonites, much more would his promise do it for Israel, his peculiar people. Cautions are given not to meddle with Moabites and Ammonites. Even wicked men must not be wronged. God gives and preserves outward blessings to wicked men; these are not the best things, he has better in store for his own children.