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.
References for 1 Chronicles 9:1
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 descendant of Perez son of Judah;
References for 1 Chronicles 9:4
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. Shallum was their chief;
References for 1 Chronicles 9:17
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. Their ancestors had been assigned to the Lord's camp as guardians of the entrance.
References for 1 Chronicles 9:19
In earlier times Phinehas son of Eleazar had been their leader, and the Lord was with him.
References for 1 Chronicles 9:20
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. They were registered by genealogy in their villages. David and Samuel the seer had appointed them to their trusted positions.
References for 1 Chronicles 9:22
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.
References for 1 Chronicles 9:26
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.
References for 1 Chronicles 9:27
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, as well as the fine flour, wine, oil, incense, and spices.
References for 1 Chronicles 9:29
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.
References for 1 Chronicles 9:31
Some of the Kohathites' relatives were responsible for preparing the rows of the bread [of the Presence] every Sabbath.
References for 1 Chronicles 9:32
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.
References for 1 Chronicles 9:35
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.
References for 1 Chronicles 9:41
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.