And ye shall know that I am the LORD, when I have wrought with you for My name’s sake, not according to your evil ways, nor according to your corrupt doings, O ye house of Israel, saith the Lord GOD.’

Tanakh — Yĕkhezqiēl (Ezekiel) 20:44

God didn`t reject his people, which he foreknew. Or don`t you know what the scripture says about Elijah? How he pleads with God against Israel:

New Testament — Romans 11:2

O believers, fear God. Let every soul consider what it has forwarded for the morrow. And fear God; God is aware of the things you do.

Quran — Al-Hashr (Surah 59) 18