Isaiah 24:22

And they shall be gathered together, as prisoners are gathered in the pit, and shall be shut up in the prison, and after many days shall they be visited.

Cross-reference

Isaiah 40:23 reinforces the theme of God humbling rulers — a parallel to the punishment of kings implied in the surrounding context.

Joshua 10:22-26 shows the kings brought out and executed — a clear type of final judgment where prisoners are punished after being shut up.

Zechariah 9:11 reverses this: God frees prisoners from the waterless pit, contrasting the judgment of being shut up.

Psalm 40:2 Contrast

Psalm 40:2 describes being rescued from a slimy pit — the opposite of being shut up in a pit for punishment.

Revelation 6:15 shows people hiding in caves during judgment, similar to prisoners gathered in a pit here.