Here "words" stands for a message. Alternate translation: "What the prophets said agrees" or "The prophets agree" (See: [[rc://en/ta/man/translate/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/translate/figs-activepassive]])