Jeremiah prophesies that 70 years after the people of Judah will be taken captive into Babylon, they will return to their homeland and once again live in harmony with God. To draw close to God, we can call upon Him, pray to Him, seek Him, search for Him with all our hearts, and obey His commandments.

Jeremiah 29:10–14

10 For thus saith the Lord, That after seventy years be accomplished at Babylon I will visit you, and perform my good word toward you, in causing you to return to this place.
11 For I know the thoughts that I think toward you, saith the Lord, thoughts of peace, and not of evil, to give you an expected end.
12 Then shall ye call upon me, and ye shall go and pray unto me, and I will hearken unto you.
13 And ye shall seek me, and find me, when ye shall search for me with all your heart.
14 And I will be found of you, saith the Lord: and I will turn away your captivity, and I will gather you from all the nations, and from all the places whither I have driven you, saith the Lord; and I will bring you again into the place whence I caused you to be carried away captive.

President Dieter F. Uchtdorf said:

“Heaven may seem distant at times, but the scriptures offer hope: ‘Ye shall seek me, and find me, when ye shall search for me with all your heart’ (Jeremiah 29:13).

“However, seeking God with all our hearts implies much more than simply offering a prayer or pronouncing a few words inviting God into our lives. ‘For this is the love of God, that we keep his commandments’ (1 John 5:3; see also 2 John 1:6). We can make a great production of saying that we know God. We can proclaim publicly that we love Him. Nevertheless, if we don’t obey Him, all is in vain, for ‘he that saith, I know him, and keepeth not his commandments, is a liar, and the truth is not in him’ (1 John 2:4; see also Isaiah 29:13).”

(“The Love of God,” Ensign or Liahona, Nov. 2009, 23.)