Deuteronomy 4:30-31
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.