Deuteronomy 4:29-31 ESV
But from there you will seek the LORD your God and you will find him, if you search after him with all your heart and with all your soul. When you are in tribulation, and all these things come upon you in the latter days, you will return to the LORD your God and obey his voice. For the LORD your God is a merciful God. He will not leave you or destroy you or forget the covenant with your fathers that he swore to them.