The names of all the people of Israel were listed/written with the names of their clans, and that information was written in the scroll/book named ‘The Record of the Kings of Israel’. Many of the people of Judah were captured and forced to go to Babylon. That happened because they did not faithfully do what was pleasing to God.
Read & study T4T 9:1So all Israel were reckoned by genealogies; and, behold, they are written in the book of the kings of Israel. And Judah was carried away captive to Babylon for their transgression.
Read & study ASV 9:1