You ask who are the ones referred to in these two verses
:
(Jeremiah 48:47) But I will
gather the captives of Moʹab in the final part of the days,’ declares Jehovah.
(Jeremiah 49:39) “But in the final part of the days, I will
gather the captives of Eʹlam,” declares Jehovah.
Those who are gathered are those who have been dispersed.
They are brought back to be together once again.
(Deuteronomy 30:3) Jehovah your God will then
bring back your captives and show you mercy and
regather you from all the peoples where Jehovah your God has
scattered you.
(Psalm 147:2) Jehovah is building Jerusalem; He gathers together
the dispersed ones of Israel.
(Isaiah 11:11, 12) In that day Jehovah will again offer his hand, a second time, to
reclaim the remnant of his people who are left from As·syrʹi·a, from Egypt, from Pathʹros, from Cush, from Eʹlam, from Shiʹnar, from Haʹmath, and from the islands of the sea.
12 He will raise up a signal for the nations and
gather the dispersed ones of Israel, and
he will gather together the scattered ones of Judah from the four corners of the earth.
(Jeremiah 30:3) For “look! the days are coming,” declares Jehovah, “when I will
gather the captives of my people, Israel and Judah,” says Jehovah, “
and I will bring them back to the land that I gave to their forefathers, and they will possess it once again.”’”
(Jeremiah 30:10, 11) “And you, my servant Jacob, do not be afraid,” declares Jehovah, “And do not be terrified, O Israel. For I will save you from far away And your offspring from the land of their captivity. Jacob
will return and be calm and undisturbed, With no one to make them afraid.”
11 “For I am with you,” declares Jehovah, “to save you. But I will make an extermination among all the nations to which I scattered you; However, you I will not exterminate. I will discipline you to the proper degree, And I will by no means leave you unpunished.”
(Ezekiel 11:17-20) “Therefore say, ‘This is what the Sovereign Lord Jehovah says: “I will also
collect you from the peoples and
gather you from the lands to which you have been scattered, and I will give you the land of Israel.
(Ezekiel 34:13, 14) I will bring them out from the peoples and
collect them together from the lands and bring them into their land and feed them on the mountains of Israel, by the streams and by all the dwelling places of the land.
14 In a good pasture I will feed them, and the land where they graze will be on Israel’s high mountains. They will lie down there in a good grazing land, and they will feed on choice pastures on the mountains of Israel.”
(Ezekiel 39:25) “Therefore this is what the Sovereign Lord Jehovah says: ‘I will
restore the captives of Jacob and have mercy on the whole house of Israel; and I will zealously defend my holy name.
(Ezekiel 39:28, 29) “‘They will have to know that I am Jehovah their God when I
send them into exile among the nations
and then gather them back to their land, not leaving any of them behind. 29 I will not hide my face from them any longer, for I will pour out my spirit on the house of Israel,’ declares the Sovereign Lord Jehovah.”
(Amos 9:14, 15) I will gather back the captives of my people Israel, And they will rebuild the desolated cities and inhabit them; They will plant vineyards and drink their wine, And make gardens and eat their fruit.’ 15 ‘I will plant them on their land, And
they will never again be uprooted From their land that I have given them,’ says Jehovah your God.”
The answer to your question is the same answer to this question
:
Who were once all together but were then scattered?
I would also underline who those verses say they are and the place they are regathered
"back" to, but people don't like it when i point out what the Bible says if contradicts what they think.