Leviticus 26:44maas
'Yet in spite of this, when they are in the land of their enemies, I will not reject them, nor will I so abhor them as to destroy them, breaking My covenant with them; for I am the Lord their God.
God promises not to reject his covenant people even in exile.
1 Chronicles 28:9zanach
"As for you, my son Solomon, know the God of your father, and serve Him with a whole heart and a willing mind; for the Lord searches all hearts, and understands every intent of the thoughts. If you seek Him, He will let you find Him; but if you forsake Him, He will reject you forever.
Forsaking God leads to being rejected by him.
Leviticus 26:15maas
if, instead, you reject My statutes, and if your soul abhors My ordinances so as not to carry out all My commandments, {and} so break My covenant,
People rejecting God's statutes breaks his covenant.