Background
Ramah
Background to Jeremiah 31 and 40
Ramah was a town of Benjamin, about five miles north of Jerusalem. Rachel, the mother of Joseph and Benjamin, died on the way to Bethlehem (Gen 35:19), and 1 Samuel places her tomb in Benjamin's territory (1 Sam 10:2).
Jeremiah pictures Rachel weeping at Ramah for her children because they are gone (31:15). The LORD tells her to stop: they will come back from the enemy's land (31:16–17). Matthew hears her weeping again in Bethlehem's grief (Matt 2:18).
Ramah was also where the Babylonians gathered captives for the march to Babylon. Jeremiah was there in chains among them when the captain of the guard set him free (40:1–4).
In Scripture
Jeremiah 31:15–17; 40:1–4