All Israel was registered in the genealogies that are written about in the Book of the Kings of Israel. But Judah was exiled to Babylon because of their unfaithfulness.
The first to live in their towns on their own property again were Israelites, priests, Levites, and temple servants.
These people from the descendants of Judah, Benjamin, Ephraim, and Manasseh settled in Jerusalem:
Uthai son of Ammihud, son of Omri, son of Imri, son of Bani, a descendanta of Perez son of Judah;
from the Shilonites: Asaiah the firstborn and his sons;
and from the sons of Zerah: Jeuel and 690 of their relatives.
The Benjaminites: Sallu son of Meshullam, son of Hodaviah, son of Hassenuah;
Ibneiah son of Jeroham; Elah son of Uzzi, son of Michri; Meshullam son of Shephatiah, son of Reuel, son of Ibnijah;
and 956 of their relatives according to their genealogical records. All these men were heads of their ancestral houses.
The priests: Jedaiah; Jehoiarib; Jachin;
Azariah son of Hilkiah, son of Meshullam, son of Zadok, son of Meraioth, son of Ahitub, the chief official of God's temple;
Adaiah son of Jeroham, son of Pashhur, son of Malchijah; Maasai son of Adiel, son of Jahzerah, son of Meshullam, son of Meshillemith, son of Immer;
and 1,760 of their relatives, the heads of households. They were capable men employed in the ministry of God's temple.
The Levites: Shemaiah son of Hasshub, son of Azrikam, son of Hashabiah of the Merarites;
Bakbakkar, Heresh, Galal, and Mattaniah, son of Mica, son of Zichri, son of Asaph;
Obadiah son of Shemaiah, son of Galal, son of Jeduthun; and Berechiah son of Asa, son of Elkanah who lived in the villages of the Netophathites.
The gatekeepers: Shallum, Akkub, Talmon, Ahiman, and their relatives.b Shallum was their chief;
he was previously stationed at the King's Gate on the east side. These were the gatekeepers from the camp of the Levites.
Shallum son of Kore, son of Ebiasaph, son of Korah and his relatives from his household, the Korahites, were assigned to guard the thresholds of the tent.c Their ancestors had been assigned to the Lord's camp as guardians of the entrance.d20
In earlier times Phinehas son of Eleazar had been their leader, and the Lord was with him.e21
Zechariah son of Meshelemiah was the gatekeeper at the entrance to the tent of meeting.
The total number of those chosen to be gatekeepers at the thresholds was 212.f They were registered by genealogy in their villages. David and Samuel the seer had appointed them to their trusted positions.
So they and their sons were assigned to the gates of the Lord's house, the house of the tent.
The gatekeepers were on the four sides: east, west, north, and south.
Their relatives came from their villages at fixed times to be with them seven days,
but the four chief gatekeepers, who were Levites, were entrusted with the rooms and the treasuries of God's temple.g27
They spent the night in the vicinity of God's temple, because they had guard duty and were in charge of opening it every morning.h28
Some of them were in charge of the utensils used in worship. They would count them when they brought them in and when they took them out.
Others were put in charge of the furnishings and all the utensils of the sanctuary,i as well as the fine flour, wine, oil, incense, and spices.
But some of the priests' sons mixed the spices.
A Levite called Mattithiah, the firstborn of Shallum the Korahite, was entrusted with baking the bread.j32
Some of the Kohathites' relatives were responsible for preparing the rows of the bread [of the Presence]k every Sabbath.
The singers, the heads of Levite families, stayed in the [temple] chambers and were exempt from other tasks because they were on duty day and night.
These were the heads of Levite families, chiefs according to their genealogies, and lived in Jerusalem.
Jeiel fathered Gibeon and lived in Gibeon. His wife's name was Maacah.
Abdon was his firstborn son, then Zur, Kish, Baal, Ner, Nadab,
Gedor, Ahio, Zechariah, and Mikloth.
Mikloth fathered Shimeam. These also lived opposite their relatives in Jerusalem with their [other] relatives.
Ner fathered Kish, Kish fathered Saul, and Saul fathered Jonathan, Malchishua, Abinadab, and Esh-baal.
Jonathan's son was Merib-baal, and Merib-baal fathered Micah.
Micah's sons: Pithon, Melech, Tahrea, and Ahaz.l42
Ahaz fathered Jarah; Jarah fathered Alemeth, Azmaveth, and Zimri; Zimri fathered Moza.
Moza fathered Binea. His son was Rephaiah, his son Eleasah, and his son Azel.
Azel had six sons, and these were their names: Azrikam, Bocheru, Ishmael, Sheariah, Obadiah, and Hanan. These were Azel's sons.