When our FATHER, YAHWEH, makes a covenant, HE keeps it for generations for those who love and obey HIM. HE even keeps HIS promise to bless Ishmael who was born outside HIS will. So HE would even keep HIS promise for such who, though against HIM, cry out to HIM as we see in Genesis 17:20 and Genesis 16:11-13
Genesis 25:12-18 Now these are the generations of Ishmael, Abraham’s son, whom Hagar the Egyptian, Sarah’s handmaid, bare unto Abraham: and these are the names of the sons of Ishmael, by their names, according to their generations: the firstborn of Ishmael, Nebajoth; and Kedar, and Adbeel, and Mibsam, and Mishma, and Dumah, and Massa, Hadar, and Tema, Jetur, Naphish, and Kedemah: these are the sons of Ishmael, and these are their names, by their towns, and by their castles; twelve princes according to their nations. And these are the years of the life of Ishmael, an hundred and thirty and seven years: and he gave up the ghost and died; and was gathered unto his people. And they dwelt from Havilah unto Shur, that is before Egypt, as thou goest toward Assyria: and he died in the presence of all his brethren.
https://bible.com/bible/1/gen.25.12-18.KJV
Psalms 105:7-10 The Lord is our God; his commands are for all the world. He will keep his covenant forever, his promises for a thousand generations. He will keep the agreement he made with Abraham and his promise to Isaac. The Lord made a covenant with Jacob, one that will last forever.
https://www.biblestudytools.com/gnt/psalms/105.html
Deuteronomy 7:9 He is God, the faithful God, who keeps His covenant and His lovingkindness to a thousandth
generation with those who love Him and keep His commandments.
Deuteronomy 7:12 Then it shall come about because you listen to these judgments and keep and do them, that the Lord your God will keep with you His covenant and His lovingkindness which He swore to your forefathers.
Exodus 2:24 So God heard their groaning; and God remembered His covenant with Abraham, Isaac, and Jacob.
Daniel 9:4 I prayed to the Lord my God and confessed and said, “Alas, O Lord, the great and awesome God, who keeps His covenant and lovingkindness for those who love Him and keep His commandments.
(Source of verses above https://www.faithpot.com/covenant-keeping-god-scriptures/)