Amos 2:3

And I will cut off the judge from the midst thereof, and will slay all the princes thereof with him, saith the LORD.

Amos 2:3 stands within the prophetic denunciation directed against the nations surrounding Israel. It forms one part of a connected message of judgment upon those peoples. That message declares that nations are held accountable for the responsibilities entrusted to them. When they fail in those duties and disregard the light and knowledge given to them, punishment follows.