Jeremiah 51 and 52 testify to the fact that although Israel and Judah are being punished for their sins, God has not forsaken them. While God used Babylon for his purposes He will punish it because of its sin. The book ends with a brief history of the events that led to the exile of the people of Judah into Babylon.
Psalm 119:73-96 recognizes that God has taken care of us since before we were born. Even though we may suffer in this life we are able to endure, survive and thrive because of God’s great love for us.