Deuteronomy 4
29 Ref But if in those lands you are turned again to the Lord your God, searching for him with all your heart and soul, he will not keep himself from you.
30 Ref When you are in trouble and all these things have come on you, if, in the future, you are turned again to the Lord your God, and give ear to his voice:
31 Ref Because the Lord your God is a God of mercy, he will not take away his help from you or let destruction overtake you, or be false to the agreement which he made by an oath with your fathers.