and Jehoiachin the king of Judah went out in surrender to the king of Babylon, he and his mother and his servants and his leaders and his officers.

And the king of Babylon took him captive in the eighth year of hisa reign. Bible see other translations
It is the eighth year of Nebuchadnezzar’s reign

“went out in surrender to the king of Babylon.” Jehoiachin left the walled city of Jerusalem and surrendered to Nebuchadnezzar. This was 597 BC, and Ezekiel was in this captivity and taken to Babylon at this time (Ezek. 1:2).

Commentary for: 2 Kings 24:12