International Standard Version All of Israel was enumerated by genealogy and recorded in the Book of the Kings of Israel as Judah was being taken captive into exile to Babylon due to their disobedience.
American Standard Version So 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.
Young's Literal Translation And all Israel have reckoned themselves by genealogy, and lo, they are written on the book of the kings of Israel and Judah -- they were removed to Babylon for their trespass.