Here "words" stands for a message. Alternate translation: "What the prophets said agrees" or "The prophets agree" (See: [[rc://en/ta/man/jit/figs-metonymy]])
This can be stated in active form. Alternate translation: "as they wrote" or "as the prophet Amos wrote long ago" (See: [[rc://en/ta/man/jit/figs-activepassive]])