All of us will encounter grief, heartaches and pain. This is normal in every humans. As Ecclesiastes 3:1 is saying, "Everything on earth has its own time and its own season". Whatever happens, always cling to God and His everlasting love. He is the greatest comforter of all.
Jeremiah and the people of Judah also knew pain and heartache, they had come under the oppression of Babylonia and were torn away from their homeland. Defeat and destruction had led to grief and hopelessness. But God gave the prophet some words of hope: “I have loved you, my people, with an everlasting love. With unfailing love I have drawn you to myself” (Jeremiah 31:3). He went on to explain that one day He would rebuild the nation, gardens would again flourish in the land, and happiness and dancing would once again be enjoyed by the people (Jeremiah 31:4-7). In essence he was saying, “Weeping may last through the night, but joy comes with the morning” (Psalm 30:5).
Trust in the love and provision of God. His “good gifts” would remain (Jeremiah 31:14). And even though we are experiencing fear and the sting of grief, we could rest in the arms of the One who said to His people, “I will turn their mourning into joy” (Jeremiah 31:13). His love is everlasting.