Here "pit" refers to a dark room or hole in a prison. This can be stated in active form. Alternate translation: "Yahweh will gather them together as his prisoners and lock them in the dungeon of a prison" (See: [[rc://en/ta/man/jit/figs-activepassive]])