Genesis 36:43
Duke Magdiel, duke Iram: these be the dukes of Edom, according to their habitations in the land of their possession: he is Esau the father of the Edomites. Duke Magdiel, duke Iram: these be the dukes of Edom, according to their habitations in the land of their possession: he is Esau the father of the Edomites.
The closing line completes the roll of the chiefs or dukes of Edom, naming Magdiel and Iram last and locating each chief according to his settlement or habitation in the land possessed by them. It is the end of the record of Esau and his descendants, tracing the nations that sprang from him. The final identification makes Edom the same as Esau, the father of the Edomites.
The reckoning belongs just after the death of Isaac at 180 years of age, when Jacob was about 109, Joseph was 17, and Benjamin was still a small child of two to four years. In narrative order this genealogy of Esau stands as the account leading into the story of Joseph.