“spoken.” Not “written,” either by Jeremiah or Zechariah, but “spoken” by Jeremiah. See Bullinger’s note in The Companion Bible. These words are found in Zechariah 11:12-13 with allusions to Jeremiah 18:1-4; 19:1-3. They are ascribed to Jeremiah since, in Jesus’ day, the books of the prophets were headed by Jeremiah, not Isaiah as now, and the quotation is identified by the name of the first book of the group, rather than by the name of the specific book within the group. Similarly in Luke 24:44, “Psalms” includes all the books known as the writings because it is the first book of the group. See commentary in The Ryrie Study Bible.
The Hebrew Gospel of Matthew has the abbreviation for Yahweh in this verse, but it is very different from the Greek text and is not included in the REV (see commentary on Matt. 3:3).