All of the people of Israel were recorded in the genealogies written down in the book of the kings of Israel. The people of Judah were taken away to captivity in Babylon because they had been unfaithful.
Read & study FBV 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