Before Israel had a king, there were kings who ruled in Edom.
References for Genesis 36:31
Bela became the king of Edom. Bela was the son of Beor. Bela's city was called Dinhabah.
When Bela died, Jobab became the next king. Jobab was the son of Zerah from Bozrah.
When Jobab died, Husham became the next king. Husham was from the land of the Temanites.
When Husham died, Hadad became the next king. Hadad was the son of Bedad. Hadad had won the battle over Midian in the country of Moab. Hadad's city was called Avith.
When Hadad died, Samlah became the next king. Samlah was from Masrekah.
When Samlah died, Shaul became the next king. Shaul was from Rehoboth on the river.
When Shaul died, Baal-Hanan became the next king. Baal-Hanan was the son of Acbor.
When Baal-Hanan died, Hadad became the next king. Hadad's city was called Pau. His wife's name was Mehetabel. She was the daughter of Matred. Matred was the daughter of Me-Zahab.
Here are the chiefs who were in the family line of Esau. They are listed by name as chiefs in charge of their tribes and territories. They are Timna, Alvah, Jetheth,
Oholibamah, Elah, Pinon,
Kenaz, Teman, Mibzar,
Magdiel and Iram. They were the chiefs of Edom. They ruled over their settlements in the land where they lived. That's the end of the story of Esau. He was the father of the people of Edom.