Deuteronomy 4:29-30
4:29 But if you seek the Lord your God from there, you will find him, if, indeed, you seek him with all your heart and soul.
4:30 In your distress when all these things happen to you in the latter days, if you return to the Lord your God and obey him