Then King Nebuchadnezzar appointed Gedaliah, who was the son of Ahikam and grandson of Shaphan, to be the governor of the people who were still living in Judah.