Leviticus 26:40-42
26:40 However, when they confess their iniquity and their ancestors’ iniquity which they committed by trespassing against me, by which they also walked in hostility against me
26:41 (and I myself will walk in hostility against them and bring them into the land of their enemies), and then their uncircumcised hearts become humbled and they make up for their iniquity,
26:42 I will remember my covenant with Jacob and also my covenant with Isaac and also my covenant with Abraham, and I will remember the land.