Matthew 2:17

15 where he stayed until the death of Herod. This fulfilled what the Lord had spoken through the prophet: “Out of Egypt I called My Son.”

16 When Herod saw that he had been outwitted by the Magi, he was filled with rage. Sending orders, he put to death all the boys in Bethlehem and its vicinity who were two years old and under, according to the time he had learned from the Magi.

Then what was spoken through the prophet Jeremiah was fulfilled:

18 “A voice is heard in Ramah, weeping and great mourning, Rachel weeping for her children, and refusing to be comforted, because they are no more.”

19 After Herod died, an angel of the Lord appeared in a dream to Joseph in Egypt.

Here the Bible tells a story about someone else. Ask yourself what it can say to us today. Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
Then what was spoken through the prophet Jeremiah was fulfilled:
KJV
Then was fulfilled that which was spoken by Jeremy the prophet, saying,
WEB
Then that which was spoken by Jeremiah the prophet was fulfilled, saying,
ASV
Then was fulfilled that which was spoken through Jeremiah the prophet, saying,
DARBY
Then was fulfilled that which was spoken through Jeremias the prophet, saying,
BLB
Then was fulfilled that having been spoken through the prophet Jeremiah, saying:
ÅB
Dermed ble det oppfylt, det som er talt ved profeten Jeremia der han sier:
OTB
Da ble det oppfylt som var talt gjennom profeten Jeremia:
B1930
Da blev det opfylt som er talt ved profeten Jeremias, som sier:

Study notes (Tyndale)

Original text and word study