It’s always a heart issue with God, isn’t it?  Your heart has to be in the right place to find him.  Its not so much in our own strength,  but a humble submission to a Holy God, that draws us to him.  Read the 2 verses before this and you will see the rest of the story, as an old radio announcer used to say.

You will seek Me and find Me when you search for Me with all your heart.
Jeremiah 29:13 NASB

https://bible.com/bible/100/jer.29.13.NASB