Those verses are speaking of the time coming when Israel shall be
freed from the yoke of bondage, it is a time of
deliverance for Israel when the great tribulation begins.
Jeremiah 30:7-10
King James Version
7 Alas! for that day is
great, so that none is like it: it is even the time of Jacob's
trouble,
but he shall be saved out of it.
8 For it shall come to pass in that day, saith the Lord of hosts, that I will break his yoke from off thy neck, and will burst thy bonds, and
strangers shall no more serve themselves of him:
9 But they shall serve the Lord their God, and David their king, whom I will raise up unto them.
10 Therefore fear thou not, O my servant
Jacob, saith the Lord; neither be dismayed, O
Israel: for, lo, I will save thee from afar, and
thy seed from the land of their captivity; and
Jacob shall return, and shall be in rest, and be quiet, and none shall make him afraid.”
This time of trouble and of
deliverance for Gods people is also shown here…
Daniel 12:1
And at that time shall Michael stand up, the great prince which standeth for the children of thy people: and
there shall be a time of trouble, such as never was since there was a nation even to that same time:
and at that time thy people shall be delivered, every one that shall be found written in the book.