All Israel was recorded in the genealogies in the Book of the Kings of Israel and Judah. The Israelites were taken away to Babylon as captives because they had sinned.
The first to settle again on their property in their own cities were [some] Israelites, the priests, the Levites, and the temple servants.
Jerusalem was settled by descendants of Judah, Benjamin, Ephraim, and Manasseh:
From the descendants of Perez, son of Judah, was Uthai, who was the son of Ammihud, grandson of Omri, and great-grandson of Imri. (Imri's father was Bani.)
From the descendants of Shilah were Asaiah (the firstborn) and his sons.
And from the descendants of Zerah were Jeuel and their relatives, 690 in all.
From the descendants of Benjamin were Sallu (son of Meshullam, grandson of Hodaviah, and great-grandson of Hassenuah),
Ibneiah (son of Jeroham), Elah (son of Uzzi and grandson of Michri), and Meshullam (son of Shephatiah, grandson of Reuel, and great-grandson of Ibniah),
and their relatives according to their ancestry. All of these men were heads of their families. A total of 956 of them lived in Jerusalem.
From the priests were Jedaiah, Jehoiarib, Jachin,
and Azariah. Azariah was the son of Hilkiah, grandson of Meshullam, and great-grandson of Zadok. Zadok's father was Meraioth, the son of Ahitub (the official in charge of God's temple).
Also from the priests were Adaiah (son of Jeroham, grandson of Pashhur, and great-grandson of Malchiah) and Maasai (son of Adiel, grandson of Jahzerah, and great-grandson of Meshullam, whose father was Meshillemith, son of Immer).
Their relatives who were heads of their families totaled 1,760 soldiers. They served in God's temple and settled in Jerusalem.
From the Levites descended from Merari were Shemaiah (son of Hasshub, grandson of Azrikam, and great-grandson of Hashabiah),
Bakbakkar, Heresh, Galal, Mattaniah (son of Mica, grandson of Zichri, and great-grandson of Asaph),
Obadiah (son of Shemaiah, grandson of Galal, and great-grandson of Jeduthun), and Berechiah (son of Asa and grandson of Elkanah, who lived in the villages belonging to the Netophathites).
The gatekeepers were Shallum, Akkub, Talmon, Ahiman, and their relatives. (Shallum was in charge.)
Formerly, they were stationed at the king's gate on the east side. They were the gatekeepers for the Levite quarters.
Shallum (son of Kore, grandson of Ebiasaph, great-grandson of Korah) and the members of his family (Korah's descendants) were responsible for serving as watchmen at the entrances to the tent, as their ancestors had been in charge of guarding the entrances to the LORD's camp.
(Phinehas, Eleazar's son, had been the official in charge of the gatekeepers, and the LORD was with him.)
Zechariah, son of Meshelemiah, was the keeper at the entrance to the tent of meeting.
The men chosen to be gatekeepers at the entrances totaled 212. Their genealogies were recorded in their villages. David and the seer Samuel appointed them to these positions because they were trustworthy.
So they and their descendants were assigned to be gatekeepers for the LORD's house, that is, the tent.
The gatekeepers were on the four sides (east, west, north, and south).
Their relatives had to come from their villages from time to time. They would come to serve under the gatekeepers' supervision for a period of seven days.
The four chief Levite gatekeepers were in charge of the rooms and treasures in God's temple because of their faithfulness.
They would spend the night stationed around God's temple because they had to guard it and open it every morning.
Some of them were in charge of the utensils for worship. They would count them when they brought them in and when they took them out.
Other descendants of Korah were placed in charge of the utensils, the holy utensils, the flour, wine, olive oil, incense, and spices.
Some of the priests' sons prepared the mixture of spices.
Mattithiah, a Levite, the firstborn son of Shallum, Korah's descendant, was entrusted with preparing the flat bread.
Some of their Kohathite relatives were responsible for setting the bread out in rows every day of worship.
These were the musicians who were the heads of the Levite families. They lived in rooms in the temple and were free from other duties because they were on duty day and night.
They were the heads of the Levite families according to their ancestry. These head Levites lived in Jerusalem.
Jeiel, who first settled Gibeon, lived in Gibeon, and his wife's name was Maacah.
His firstborn son was Abdon, then Zur, Kish, Baal, Nadab,
Gedor, Ahio, Zechariah, and Mikloth.
Mikloth was the father of Shimeam. They lived next to their relatives in Jerusalem.
Ner was the father of Kish. Kish was the father of Saul. Saul was the father of Jonathan, Malchishua, Abinadab, and Eshbaal.
Jonathan's son was Meribbaal, and Meribbaal was the father of Micah.
Micah's sons were Pithon, Melech, and Tarea.
Ahaz was the father of Jarah. Jarah was the father of Alemeth, Azmaveth, and Zimri. Zimri was the father of Moza.
Moza was the father of Binea. Binea's son was Rephaiah. Rephaiah's son was Eleasah. Eleasah's son was Azel.
Azel had six sons. Their names were Azrikam, Bocheru, Ishmael, Sheariah, Obadiah, and Hanan. All of these men were Azel's sons.