Deuteronomy 4:29-31
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
4:31 (for he is a merciful God), he will not let you down or destroy you, for he cannot forget the covenant with your ancestors that he confirmed by oath to them.