Deuteronomy 7:9
7 It is not because you were more numerous than all the other peoples that the Lord favored and chose you—for in fact you were the least numerous of all peoples. 8 Rather it is because of his love for you and his faithfulness to the promise he solemnly vowed to your ancestors that the Lord brought you out with great power, redeeming you from the place of slavery, from the power of Pharaoh king of Egypt. 9 So realize that the Lord your God is the true God, the faithful God who keeps covenant faithfully with those who love him and keep his commandments, to a thousand generations, 10 but who pays back those who hate him as they deserve and destroys them. He will not ignore those who hate him but will repay them as they deserve! 11 So keep the commandments, statutes, and ordinances that I today am commanding you to do.
Daniel 9:4
2 in the first year of his reign I, Daniel, came to understand from the sacred books that the number of years for the fulfilling of the desolation of Jerusalem, which had come as the Lord’s message to the prophet Jeremiah, would be 70 years. 3 So I turned my attention to the Lord God to implore him by prayer and requests, with fasting, sackcloth, and ashes. 4 I prayed to the Lord my God, confessing in this way: “O Lord, great and awesome God who is faithful to his covenant with those who love him and keep his commandments, 5 we have sinned! We have done what is wrong and wicked; we have rebelled by turning away from your commandments and standards. 6 We have not paid attention to your servants the prophets, who spoke by your authority to our kings, our leaders, and our ancestors, and to all the inhabitants of the land as well.
Notes and References
"... In 587 B.C. and in the 160s B.C. the sanctuary was despoiled and emptied of its thronging worshipers: “[Jerusalem’s] sanctuary was laid waste like a wilderness, her feasts were turned into mourning, her sabbaths into reproach, her honor into contempt”; sacrifices were suspended and the building defiled (1 Maccabees 1:39, 45–47; compare Lamentations 1:4, 10; 2:6, 7). The prayer’s cultic interest corresponds to that of other material in chapters 7–12. The response God looks for from his people is stated first in the initial description of his characteristics: he is faithful to those “who love him and keep his commands” (verse 4); the phrase recalls, behind Nehemiah 1:5, Deuteronomy 7:9 (also Deuteronomy 5:10 = Exodus 20:10); the theme of loving God is most common in Deuteronomistic contexts. There, as in Daniel 9:4, the context characteristically indicates that this love is not so much an emotion as a moral commitment (see Deuteronomy 6:5; 10:12; 11:1; 30:16, 20). This same emphasis features subsequently in Daniel 9 in repeated references to listening to / obeying God’s voice speaking through the prophets (verses 6, 10, 11, 14), which issues in living (“walk”) by his teaching(s) (verse 10). These expressions, too, are characteristically Deuteronomistic (e.g., Deuteronomy 11:22; 12:28; 13:4–5; 19:9; 28:1–2; 30:2, 8, 10, 16; Joshua 22:5). The significance of this is that the response God looks for from his people is the one required by that covenant expounded in Deuteronomy ..."
Goldingay, John E. Word Biblical Commentary: Daniel (pp. 529-530) Zondervan, 2017