Romans 8:28 “And we know that for those who love God all things work together for good, for those who are called according to his purpose.”
This seems close to Jeremiah 29:11 except for the fact that even bad things work out for our best. The Bible has a history where God uses evil for His purpose. That means that everything…all things…work together for our ultimate good. It doesn’t say that all things are good but that all things, good or bad, work to our benefit. These “all things” do not work out for the best for those who are not called by God. The opposite is true for non-believers; all things will work out for their worse.
Psalm 23:8 “Surely goodness and mercy shall follow me all the days of my life, and I shall dwell in the house of the Lord forever.”
Taken from The Lord is My Shepherd, this last verse has David looking forward and seeing with the eyes of faith, a future that is full of hope. David is certain that he will dwell with the Lord “forever” or for time without end. This is clearly a reference to eternal life. God’s goodness and mercy is going to “follow [him] all the days of [his] life” meaning that even after his death on this earth, God’s mercy and goodness will follow him to his eternal dwelling place with God. This eternal dwelling place is the coming Kingdom of Heaven.