Jeremiah has a message of hope in the midst of the gloom. God does not abandon His covenant people, even if His covenant people abandon Him. He yet has a purpose for those whom He exiled. There will be a new covenant, with better promises, and a better hope.
At that time, saith YHWH, will I be the God of all the families of Israel, and they shall be my people. Thus saith YHWH, The people that were left of the sword found favor in the wilderness; even Israel, when I went to cause him to rest. YHWH appeared of old unto me, saying, Yea, I have loved thee with an everlasting love: therefore with lovingkindness have I drawn thee. Again will I build thee, and thou shalt be built, O virgin of Israel: again shalt thou be adorned with thy tabrets, and shalt go forth in the dances of them that make merry. Again shalt thou plant vineyards upon the mountains of Samaria; the planters shall plant, and shall enjoy the fruit thereof. For there shall be a day, that the watchmen upon the hills of Ephraim shall cry, Arise ye, and let us go up to Zion unto YHWH our God.
For thus saith YHWH, Sing with gladness for Jacob, and shout for the chief of the nations: publish ye, praise ye, and say, O YHWH, save thy people, the remnant of Israel. Behold, I will bring them from the north country, and gather them from the uttermost parts of the earth, and with them the blind and the lame, the woman with child and her that travaileth with child together: a great company shall they return hither. They shall come with weeping; and with supplications will I lead them: I will cause them to walk by rivers of waters, in a straight way wherein they shall not stumble; for I am a father to Israel, and Ephraim is my first-born. Hear the word of YHWH, O ye nations, and declare it in the isles afar off; and say, He that scattered Israel will gather him, and keep him, as a shepherd doth his flock. For YHWH hath ransomed Jacob, and redeemed him from the hand of him that was stronger than he. And they shall come and sing in the height of Zion, and shall flow unto the goodness of YHWH, to the grain, and to the new wine, and to the oil, and to the young of the flock and of the herd: and their soul shall be as a watered garden; and they shall not sorrow any more at all. Then shall the virgin rejoice in the dance, and the young men and the old together; for I will turn their mourning into joy, and will comfort them, and make them rejoice from their sorrow. And I will satiate the soul of the priests with fatness, and my people shall be satisfied with my goodness, saith YHWH.
Thus saith YHWH: A voice is heard in Ramah, lamentation, and bitter weeping, Rachel weeping for her children; she refuseth to be comforted for her children, because they are not. Thus saith YHWH: Refrain thy voice from weeping, and thine eyes from tears; for thy work shall be rewarded, saith YHWH; and they shall come again from the land of the enemy. And there is hope for thy latter end, saith YHWH; and thy children shall come again to their own border.
I have surely heard Ephraim bemoaning himself thus, Thou hast chastised me, and I was chastised, as a calf unaccustomed to the yoke: turn thou me, and I shall be turned; for thou art YHWH my God. Surely after that I was turned, I repented; and after that I was instructed, I smote upon my thigh: I was ashamed, yea, even confounded, because I did bear the reproach of my youth. Is Ephraim my dear son? is he a darling child? for as often as I speak against him, I do earnestly remember him still: therefore my heart yearneth for him; I will surely have mercy upon him, saith YHWH. Set thee up waymarks, make thee guide-posts; set thy heart toward the highway, even the way by which thou wentest: turn again, O virgin of Israel, turn again to these thy cities. How long wilt thou go hither and thither, O thou backsliding daughter? for YHWH hath created a new thing in the earth: A woman shall encompass a man.
Thus saith YHWH of hosts, the God of Israel, Yet again shall they use this speech in the land of Judah and in the cities thereof, when I shall bring again their captivity: YHWH bless thee, O habitation of righteousness, O mountain of holiness. And Judah and all the cities thereof shall dwell therein together, the husbandmen, and they that go about with flocks. For I have satiated the weary soul, and every sorrowful soul have I replenished. Upon this I awaked, and beheld; and my sleep was sweet unto me. Behold, the days come, saith YHWH, that I will sow the house of Israel and the house of Judah with the seed of man, and with the seed of beast.
And it shall come to pass that, like as I have watched over them to pluck up and to break down and to overthrow and to destroy and to afflict, so will I watch over them to build and to plant, saith YHWH. In those days they shall say no more, The fathers have eaten sour grapes, and the children’s teeth are set on edge. But every one shall die for his own iniquity: every man that eateth the sour grapes, his teeth shall be set on edge.
Behold, the days come, saith YHWH, that I will make a new covenant with the house of Israel, and with the house of Judah: not according to the covenant that I made with their fathers in the day that I took them by the hand to bring them out of the land of Egypt; which my covenant they brake, although I was a husband unto them, saith YHWH. But this is the covenant that I will make with the house of Israel after those days, saith YHWH: I will put my law in their inward parts, and in their heart will I write it; and I will be their God, and they shall be my people. And they shall teach no more every man his neighbor, and every man his brother, saying, Know YHWH; for they shall all know me, from the least of them unto the greatest of them, saith YHWH: for I will forgive their iniquity, and their sin will I remember no more.
Thus saith YHWH, who giveth the sun for a light by day, and the ordinances of the moon and of the stars for a light by night, who stirreth up the sea, so that the waves thereof roar; YHWH of hosts is his name: If these ordinances depart from before me, saith YHWH, then the seed of Israel also shall cease from being a nation before me for ever. Thus saith YHWH: If heaven above can be measured, and the foundations of the earth searched out beneath, then will I also cast off all the seed of Israel for all that they have done, saith YHWH.
Behold, the days come, saith YHWH, that the city shall be built to YHWH from the tower of Hananel unto the gate of the corner. And the measuring line shall go out further straight onward unto the hill Gareb, and shall turn about unto Goah. And the whole valley of the dead bodies and of the ashes, and all the fields unto the brook Kidron, unto the corner of the horse gate toward the east, shall be holy unto YHWH; it shall not be plucked up, nor thrown down any more for ever (Jeremiah 31:1-40).